diff options
author | Robert Pluim <rpluim@gmail.com> | 2018-12-14 16:07:47 +0100 |
---|---|---|
committer | Robert Pluim <rpluim@gmail.com> | 2018-12-14 16:07:47 +0100 |
commit | 30156364714f7b66ee82b28c9c01abebba4f49e5 (patch) | |
tree | 902ad0e8dd2648efc7fbf433411ef47095717e32 | |
parent | f14d5742db39b797f742566c4e68dffa9a62646d (diff) | |
download | emacs-30156364714f7b66ee82b28c9c01abebba4f49e5.tar.gz |
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.
-rw-r--r-- | src/xftfont.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xftfont.c b/src/xftfont.c index 5ef90a014ea..9801d75d238 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -42,8 +42,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ struct xftfont_info { struct font font; - /* The following five 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; @@ -51,6 +52,7 @@ struct xftfont_info FT_Size ft_size; int index; FT_Matrix matrix; + Display *display; XftFont *xftfont; unsigned x_display_id; |