diff options
| author | Robert Pluim | 2018-12-14 16:07:47 +0100 |
|---|---|---|
| committer | Robert Pluim | 2018-12-14 16:07:47 +0100 |
| commit | 30156364714f7b66ee82b28c9c01abebba4f49e5 (patch) | |
| tree | 902ad0e8dd2648efc7fbf433411ef47095717e32 /src | |
| parent | f14d5742db39b797f742566c4e68dffa9a62646d (diff) | |
| download | emacs-30156364714f7b66ee82b28c9c01abebba4f49e5.tar.gz emacs-30156364714f7b66ee82b28c9c01abebba4f49e5.zip | |
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.
Diffstat (limited to 'src')
| -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/>. */ | |||
| 42 | struct xftfont_info | 42 | struct xftfont_info |
| 43 | { | 43 | { |
| 44 | struct font font; | 44 | struct font font; |
| 45 | /* The following five members must be here in this order to be | 45 | /* The following members up to and including 'matrix' must be here |
| 46 | compatible with struct ftfont_info (in ftfont.c). */ | 46 | in this order to be compatible with struct ftfont_info (in |
| 47 | ftfont.c). */ | ||
| 47 | #ifdef HAVE_LIBOTF | 48 | #ifdef HAVE_LIBOTF |
| 48 | bool maybe_otf; /* Flag to tell if this may be OTF or not. */ | 49 | bool maybe_otf; /* Flag to tell if this may be OTF or not. */ |
| 49 | OTF *otf; | 50 | OTF *otf; |
| @@ -51,6 +52,7 @@ struct xftfont_info | |||
| 51 | FT_Size ft_size; | 52 | FT_Size ft_size; |
| 52 | int index; | 53 | int index; |
| 53 | FT_Matrix matrix; | 54 | FT_Matrix matrix; |
| 55 | |||
| 54 | Display *display; | 56 | Display *display; |
| 55 | XftFont *xftfont; | 57 | XftFont *xftfont; |
| 56 | unsigned x_display_id; | 58 | unsigned x_display_id; |