Commit 30156364 authored by Robert Pluim's avatar Robert Pluim
Browse files

Document font structure layout constraints

This has to be the same as in src/ftcrfont.c and src/ftfont.c

* src/xftfont.c (struct xftfont_info): Document layout constraints.
parent f14d5742
Pipeline #281 failed with stage
in 5 minutes and 28 seconds
...@@ -42,8 +42,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ ...@@ -42,8 +42,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
struct xftfont_info struct xftfont_info
{ {
struct font font; struct font font;
/* The following five members must be here in this order to be /* The following members up to and including 'matrix' must be here
compatible with struct ftfont_info (in ftfont.c). */ in this order to be compatible with struct ftfont_info (in
ftfont.c). */
#ifdef HAVE_LIBOTF #ifdef HAVE_LIBOTF
bool maybe_otf; /* Flag to tell if this may be OTF or not. */ bool maybe_otf; /* Flag to tell if this may be OTF or not. */
OTF *otf; OTF *otf;
...@@ -51,6 +52,7 @@ struct xftfont_info ...@@ -51,6 +52,7 @@ struct xftfont_info
FT_Size ft_size; FT_Size ft_size;
int index; int index;
FT_Matrix matrix; FT_Matrix matrix;
Display *display; Display *display;
XftFont *xftfont; XftFont *xftfont;
unsigned x_display_id; unsigned x_display_id;
......
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