Commit f14d5742 authored by Robert Pluim's avatar Robert Pluim

Document font structure layout constraints

The layout of the initial members of ftcrfont_info must match
ftfont_info

* src/ftcrfont.c (struct ftcrfont_info): Likewise.

* src/ftfont.c (struct ftfont_info): Document layout constraints.
parent f519aa10
Pipeline #280 failed with stage
in 5 minutes and 34 seconds
......@@ -35,8 +35,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
struct ftcrfont_info
{
struct font font;
/* The following six members must be here in this order to be
compatible with struct ftfont_info (in ftfont.c). */
/* The following members up to and including 'matrix' must be here
in this order to be compatible with struct ftfont_info (in
ftfont.c). */
#ifdef HAVE_LIBOTF
bool maybe_otf; /* Flag to tell if this may be OTF or not. */
OTF *otf;
......
......@@ -56,8 +56,9 @@ struct ftfont_info
{
struct font font;
#ifdef HAVE_LIBOTF
/* The following four members must be here in this order to be
compatible with struct xftfont_info (in xftfont.c). */
/* The following members up to and including 'matrix' must be here in
this order to be compatible with struct xftfont_info (in
xftfont.c). */
bool maybe_otf; /* Flag to tell if this may be OTF or not. */
OTF *otf;
#endif /* HAVE_LIBOTF */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment