comparison src/fontset.h @ 17190:6637001cdb4b

Adjusted for the change of MAX_CHARSET.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Mar 1997 23:31:34 +0000
parents 5579b391ebbc
children ce9a6d97e157
comparison
equal deleted inserted replaced
17189:7c008ec99e97 17190:6637001cdb4b
69 If the value can't be decided from information of the font, we 69 If the value can't be decided from information of the font, we
70 consult `font-encoding-alist' to get of the corresponding charset 70 consult `font-encoding-alist' to get of the corresponding charset
71 whose default value is defined in lisp/fontset.el. Since there's 71 whose default value is defined in lisp/fontset.el. Since there's
72 no charset whose id is 1, we use encoding[1] to store the 72 no charset whose id is 1, we use encoding[1] to store the
73 encoding information decided by the font itself. */ 73 encoding information decided by the font itself. */
74 char encoding[MAX_CHARSET]; 74 char encoding[MAX_CHARSET + 1];
75 75
76 /* The baseline position of a font is normally `ascent' value of the 76 /* The baseline position of a font is normally `ascent' value of the
77 font. However, there exists many fonts which don't set `ascent' 77 font. However, there exists many fonts which don't set `ascent'
78 an appropriate value to be used as baseline position. This is 78 an appropriate value to be used as baseline position. This is
79 typical in such ASCII fonts which are designed to be used with 79 typical in such ASCII fonts which are designed to be used with
112 this case, the character is drawn above the previous glyphs. 112 this case, the character is drawn above the previous glyphs.
113 (2) The top of the character is lower than 0 (i.e. baseline 113 (2) The top of the character is lower than 0 (i.e. baseline
114 height). In this case, the character is drawn beneath the 114 height). In this case, the character is drawn beneath the
115 previous glyphs. 115 previous glyphs.
116 116
117 This value is take from a private font property 117 This value is taken from a private font property
118 `_MULE_RELATIVE_COMPOSE' which is introduced by Emacs. */ 118 `_MULE_RELATIVE_COMPOSE' which is introduced by Emacs. */
119 int relative_compose; 119 int relative_compose;
120 120
121 /* Non zero means an ascent value to be used for a character 121 /* Non zero means an ascent value to be used for a character
122 registered in char-table `use-default-ascent'. */ 122 registered in char-table `use-default-ascent'. */
140 140
141 /* Height of the tallest font in the fontset. */ 141 /* Height of the tallest font in the fontset. */
142 int height; 142 int height;
143 143
144 /* Table of font name for each character set. */ 144 /* Table of font name for each character set. */
145 char *fontname[MAX_CHARSET]; 145 char *fontname[MAX_CHARSET + 1];
146 146
147 /* Table of index numbers of fonts indexed by charset. If a font is 147 /* Table of index numbers of fonts indexed by charset. If a font is
148 not yet loaded, the value is -1 (FONT_NOT_OPENED). If font 148 not yet loaded, the value is -1 (FONT_NOT_OPENED). If font
149 loading is failed, the value is -2 (FONT_NOT_FOUND). */ 149 loading is failed, the value is -2 (FONT_NOT_FOUND). */
150 int font_indexes[MAX_CHARSET]; 150 int font_indexes[MAX_CHARSET + 1];
151 }; 151 };
152 152
153 /* This data type is used for the fontset_data field of struct frame. */ 153 /* This data type is used for the fontset_data field of struct frame. */
154 154
155 struct fontset_data 155 struct fontset_data