Mercurial > emacs
annotate src/font.h @ 91121:1805a65e7746
(read1): Undo the previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 21 Nov 2007 12:12:06 +0000 |
parents | ce50ee0149be |
children | d8c3402ee3fa |
rev | line source |
---|---|
90400 | 1 /* font.h -- Interface definition for font handling. |
2 Copyright (C) 2006 Free Software Foundation, Inc. | |
3 Copyright (C) 2006 | |
4 National Institute of Advanced Industrial Science and Technology (AIST) | |
5 Registration Number H13PRO009 | |
6 | |
7 This file is part of GNU Emacs. | |
8 | |
9 GNU Emacs is free software; you can redistribute it and/or modify | |
10 it under the terms of the GNU General Public License as published by | |
11 the Free Software Foundation; either version 2, or (at your option) | |
12 any later version. | |
13 | |
14 GNU Emacs is distributed in the hope that it will be useful, | |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 GNU General Public License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with GNU Emacs; see the file COPYING. If not, write to | |
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
22 Boston, MA 02110-1301, USA. */ | |
23 | |
24 #ifndef EMACS_FONT_H | |
25 #define EMACS_FONT_H | |
26 | |
27 #include "ccl.h" | |
28 | |
29 /* We have three types of Lisp objects related to font. | |
30 | |
31 FONT-SPEC | |
32 | |
33 Vector (length FONT_SPEC_MAX) of font properties. Some | |
34 properties can be left unspecified (i.e. nil). Emacs asks | |
35 font-drivers to find a font by FONT-SPEC. A fontset entry | |
36 specifies requisite properties whereas a face specifies just | |
37 preferable properties. This object is fully modifiable by | |
38 Lisp. | |
39 | |
40 FONT-ENTITY | |
41 | |
42 Vector (length FONT_ENTITY_MAX) of fully specified font | |
43 properties that a font-driver returns upon a request of | |
44 FONT-SPEC. | |
45 | |
46 Note: Only the method `list' of a font-driver can create this | |
47 object, and should never be modified by Lisp. In that sense, | |
48 it may be cleaner to implement it as a Lisp object of a new | |
49 type (e.g. struct Lisp_Font). | |
50 | |
51 FONT-OBJECT | |
52 | |
53 Lisp object of type Lisp_Misc_Save_Value encapsulating a | |
54 pointer to "struct font". This corresponds to an opened font. | |
55 | |
56 Note: The note for FONT-ENTITY also applies to this. | |
57 */ | |
58 | |
59 | |
60 struct font_driver; | |
61 struct font; | |
62 | |
63 /* An enumerator for each font property. This is used as an index to | |
64 the vector of FONT-SPEC and FONT-ENTITY. | |
65 | |
66 Note: The order is important and should not be changed. */ | |
67 | |
68 enum font_property_index | |
69 { | |
70 /* FONT-TYPE is a symbol indicating a font backend; currently `x', | |
71 `xft', `ftx', `freetype' are available. For windows, we need | |
72 `bdf' and `windows'. For Mac OS X, we need `atm'. */ | |
73 FONT_TYPE_INDEX, | |
74 | |
75 /* FONT-FOUNDRY is a foundry name (symbol). */ | |
76 FONT_FOUNDRY_INDEX, | |
77 | |
78 /* FONT-FAMILY is a family name (symbol). */ | |
79 FONT_FAMILY_INDEX, | |
80 | |
81 /* FONT-ADSTYLE is an additional style name (symbol). */ | |
82 FONT_ADSTYLE_INDEX, | |
83 | |
84 /* FONT-REGISTRY is a combination of a charset-registry and | |
85 charset0encoding name (symbol). */ | |
86 FONT_REGISTRY_INDEX, | |
87 | |
88 /* FONT-WEIGHT is a numeric value of weight (e.g. medium, bold) of | |
89 the font. The value is what defined by FC_WEIGHT_* in | |
90 fontconfig. */ | |
91 FONT_WEIGHT_INDEX, | |
92 | |
93 /* FONT-SLANT is a numeric value of slant (e.g. r, i, o) of the | |
94 font. The value is what defined by FC_SLANT_* in | |
95 fontconfig plus 100. */ | |
96 FONT_SLANT_INDEX, | |
97 | |
98 /* FONT-WIDTH is a numeric value of setwidth (e.g. normal, | |
99 condensed) of the font. The value is what defined by | |
100 FC_WIDTH_* in fontconfig. */ | |
101 FONT_WIDTH_INDEX, | |
102 | |
103 /* FONT-SIZE is a size of the font. If integer, it is a pixel | |
104 size. For a font-spec, the value can be float specifying a | |
105 point size. For a font-entity, the value can be zero meaning | |
106 that the font is scalable. */ | |
107 FONT_SIZE_INDEX, | |
108 | |
109 /* In a font-spec, the value is an alist of extra information of a | |
110 font such as name, OpenType features, and language coverage. | |
111 In a font-entity, the value is an extra infomation for | |
112 identifying a font (font-driver dependent). */ | |
113 FONT_EXTRA_INDEX, /* alist alist */ | |
114 | |
115 /* This value is the length of font-spec vector. */ | |
116 FONT_SPEC_MAX, | |
117 | |
118 /* The followings are used only for a font-entity. */ | |
119 | |
120 /* Frame on which the font is found. The value is nil if the font | |
121 can be opend on any frame. */ | |
122 FONT_FRAME_INDEX = FONT_SPEC_MAX, | |
123 | |
124 /* List of font-objects opened from the font-entity. */ | |
125 FONT_OBJLIST_INDEX, | |
126 | |
127 /* This value is the length of font-entity vector. */ | |
128 FONT_ENTITY_MAX | |
129 }; | |
130 | |
90502 | 131 extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClanguage, QCscript; |
90400 | 132 |
90438
cac8d07077df
(Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90427
diff
changeset
|
133 /* Important character set symbols. */ |
90621
d8a2b76fe3d4
(Qunicode_sip): Extern it.
Kenichi Handa <handa@m17n.org>
parents:
90564
diff
changeset
|
134 extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; |
90438
cac8d07077df
(Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90427
diff
changeset
|
135 |
90400 | 136 extern Lisp_Object null_string; |
137 extern Lisp_Object null_vector; | |
138 | |
139 /* Structure for an opened font. We can safely cast this structure to | |
90864 | 140 "struct font_info". */ |
90400 | 141 |
142 struct font | |
143 { | |
144 struct font_info font; | |
145 | |
146 /* From which font-entity the font is opened. */ | |
147 Lisp_Object entity; | |
148 | |
149 /* By which pixel size the font is opened. */ | |
150 int pixel_size; | |
151 | |
152 /* Font-driver for the font. */ | |
153 struct font_driver *driver; | |
154 | |
90678
94842604dfce
(struct font): New memeber format.
Kenichi Handa <handa@m17n.org>
parents:
90621
diff
changeset
|
155 /* Symbol of font font; x, ttf, pcf, etc, */ |
94842604dfce
(struct font): New memeber format.
Kenichi Handa <handa@m17n.org>
parents:
90621
diff
changeset
|
156 Lisp_Object format; |
94842604dfce
(struct font): New memeber format.
Kenichi Handa <handa@m17n.org>
parents:
90621
diff
changeset
|
157 |
90400 | 158 /* File name of the font, or NULL if the font is not associated with |
159 a file. */ | |
160 char *file_name; | |
161 | |
90506
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
162 /* Charset to encode a character code into a glyph code of the font. |
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
163 -1 means that the font doesn't require this information to encode |
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
164 a character. */ |
90400 | 165 int encoding_charset; |
166 | |
167 /* Charset to check if a character code is supported by the font. | |
168 -1 means that the contents of the font must be looked up to | |
90506
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
169 determine it. */ |
90453
3a78ea4d2a53
(struct font): Fix typo (charet->charset).
Kenichi Handa <handa@m17n.org>
parents:
90438
diff
changeset
|
170 int repertory_charset; |
90400 | 171 |
172 /* Minimum glyph width (in pixels). */ | |
173 int min_width; | |
174 | |
175 /* Ascent and descent of the font (in pixels). */ | |
176 int ascent, descent; | |
177 | |
90557
80c2d97a494e
(struct font): New member scalable.
Kenichi Handa <handa@m17n.org>
parents:
90550
diff
changeset
|
178 /* 1 iff the font is scalable. */ |
80c2d97a494e
(struct font): New member scalable.
Kenichi Handa <handa@m17n.org>
parents:
90550
diff
changeset
|
179 int scalable; |
80c2d97a494e
(struct font): New member scalable.
Kenichi Handa <handa@m17n.org>
parents:
90550
diff
changeset
|
180 |
90400 | 181 /* There will be more to this structure, but they are private to a |
182 font-driver. */ | |
183 }; | |
184 | |
90482
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
185 enum font_spacing |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
186 { |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
187 FONT_SPACING_PROPORTIONAL = 0, |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
188 FONT_SPACING_DUAL = 90, |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
189 FONT_SPACING_MONO = 100, |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
190 FONT_SPACING_CHARCELL = 110 |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
191 }; |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
192 |
90400 | 193 struct font_metrics |
194 { | |
195 short lbearing, rbearing, width, ascent, descent; | |
196 }; | |
197 | |
198 struct font_bitmap | |
199 { | |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
200 int bits_per_pixel; |
90400 | 201 int rows; |
202 int width; | |
203 int pitch; | |
204 unsigned char *buffer; | |
205 int left; | |
206 int top; | |
207 int advance; | |
208 void *extra; | |
209 }; | |
210 | |
211 /* Predicates to check various font-related objects. */ | |
212 | |
213 #define FONTP(x) \ | |
214 (VECTORP (x) && (ASIZE (x) == FONT_SPEC_MAX || ASIZE (x) == FONT_ENTITY_MAX)) | |
215 #define FONT_SPEC_P(x) \ | |
216 (VECTORP (x) && ASIZE (x) == FONT_SPEC_MAX) | |
217 #define FONT_ENTITY_P(x) \ | |
218 (VECTORP (x) && ASIZE (x) == FONT_ENTITY_MAX) | |
219 #define FONT_OBJECT_P(x) \ | |
220 (XTYPE (x) == Lisp_Misc && XMISCTYPE (x) == Lisp_Misc_Save_Value) | |
221 | |
222 | |
223 /* Check macros for various font-related objects. */ | |
224 | |
225 #define CHECK_FONT(x) \ | |
226 do { if (! FONTP (x)) x = wrong_type_argument (Qfont, x); } while (0) | |
227 #define CHECK_FONT_SPEC(x) \ | |
228 do { if (! FONT_SPEC_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | |
229 #define CHECK_FONT_ENTITY(x) \ | |
230 do { if (! FONT_ENTITY_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | |
231 #define CHECK_FONT_OBJECT(x) \ | |
232 do { if (! FONT_OBJECT_P (x)) x = wrong_type_argument (Qfont, x); } while (0) | |
233 | |
234 #define CHECK_FONT_GET_OBJECT(x, font) \ | |
235 do { \ | |
236 if (! FONT_OBJECT_P (x)) x = wrong_type_argument (Qfont, x); \ | |
237 if (! XSAVE_VALUE (x)->pointer) error ("Font already closed"); \ | |
238 font = XSAVE_VALUE (x)->pointer; \ | |
239 } while (0) | |
240 | |
90482
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
241 /* Ignore the difference of font pixel sizes less than or equal to |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
242 this value. */ |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
243 #define FONT_PIXEL_SIZE_QUANTUM 1 |
48a50b114c17
(QCspacing, QCdpi): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90469
diff
changeset
|
244 |
90400 | 245 struct face; |
246 struct composition; | |
247 | |
248 /* Macros for lispy glyph-string. */ | |
249 #define LGSTRING_FONT(lgs) AREF (AREF ((lgs), 0), 0) | |
250 #define LGSTRING_LBEARING(lgs) AREF (AREF ((lgs), 0), 1) | |
251 #define LGSTRING_RBEARING(lgs) AREF (AREF ((lgs), 0), 2) | |
252 #define LGSTRING_WIDTH(lgs) AREF (AREF ((lgs), 0), 3) | |
253 #define LGSTRING_ASCENT(lgs) AREF (AREF ((lgs), 0), 4) | |
254 #define LGSTRING_DESCENT(lgs) AREF (AREF ((lgs), 0), 5) | |
255 #define LGSTRING_SET_FONT(lgs, val) ASET (AREF ((lgs), 0), 0, (val)) | |
256 #define LGSTRING_SET_LBEARING(lgs, val) ASET (AREF ((lgs), 0), 1, (val)) | |
257 #define LGSTRING_SET_RBEARING(lgs, val) ASET (AREF ((lgs), 0), 2, (val)) | |
258 #define LGSTRING_SET_WIDTH(lgs, val) ASET (AREF ((lgs), 0), 3, (val)) | |
259 #define LGSTRING_SET_ASCENT(lgs, val) ASET (AREF ((lgs), 0), 4, (val)) | |
260 #define LGSTRING_SET_DESCENT(lgs, val) ASET (AREF ((lgs), 0), 5, (val)) | |
261 | |
262 #define LGSTRING_LENGTH(lgs) (ASIZE ((lgs)) - 1) | |
263 #define LGSTRING_GLYPH(lgs, idx) AREF ((lgs), (idx) + 1) | |
264 | |
90542
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
265 #define LGLYPH_FROM(g) AREF ((g), 0) |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
266 #define LGLYPH_TO(g) AREF ((g), 1) |
90400 | 267 #define LGLYPH_CHAR(g) AREF ((g), 2) |
268 #define LGLYPH_CODE(g) AREF ((g), 3) | |
90531
a4a30dc43165
(LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
Kenichi Handa <handa@m17n.org>
parents:
90506
diff
changeset
|
269 #define LGLYPH_WIDTH(g) AREF ((g), 4) |
a4a30dc43165
(LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
Kenichi Handa <handa@m17n.org>
parents:
90506
diff
changeset
|
270 #define LGLYPH_ADJUSTMENT(g) AREF ((g), 5) |
90542
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
271 #define LGLYPH_SET_FROM(g, val) ASET ((g), 0, (val)) |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
272 #define LGLYPH_SET_TO(g, val) ASET ((g), 1, (val)) |
90400 | 273 #define LGLYPH_SET_CHAR(g, val) ASET ((g), 2, (val)) |
274 #define LGLYPH_SET_CODE(g, val) ASET ((g), 3, (val)) | |
90531
a4a30dc43165
(LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
Kenichi Handa <handa@m17n.org>
parents:
90506
diff
changeset
|
275 #define LGLYPH_SET_WIDTH(g, val) ASET ((g), 4, (val)) |
a4a30dc43165
(LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
Kenichi Handa <handa@m17n.org>
parents:
90506
diff
changeset
|
276 #define LGLYPH_SET_ADJUSTMENT(g, val) ASET ((g), 5, (val)) |
a4a30dc43165
(LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
Kenichi Handa <handa@m17n.org>
parents:
90506
diff
changeset
|
277 |
90542
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
278 #define LGLYPH_XOFF(g) (VECTORP (LGLYPH_ADJUSTMENT (g)) \ |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
279 ? XINT (AREF (LGLYPH_ADJUSTMENT (g), 0)) : 0) |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
280 #define LGLYPH_YOFF(g) (VECTORP (LGLYPH_ADJUSTMENT (g)) \ |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
281 ? XINT (AREF (LGLYPH_ADJUSTMENT (g), 1)) : 0) |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
282 #define LGLYPH_WADJUST(g) (VECTORP (LGLYPH_ADJUSTMENT (g)) \ |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
283 ? XINT (AREF (LGLYPH_ADJUSTMENT (g), 2)) : 0) |
90400 | 284 |
285 #define FONT_INVALID_CODE 0xFFFFFFFF | |
286 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
287 /* Font driver. Members specified as "optional" can be NULL. */ |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
288 |
90400 | 289 struct font_driver |
290 { | |
291 /* Symbol indicating the type of the font-driver. */ | |
292 Lisp_Object type; | |
293 | |
294 /* Return a cache of font-entities on FRAME. The cache must be a | |
295 cons whose cdr part is the actual cache area. */ | |
296 Lisp_Object (*get_cache) P_ ((Lisp_Object frame)); | |
297 | |
90564
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
298 /* List fonts exactly matching with FONT_SPEC on FRAME. The value |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
299 is a vector of font-entities. This is the sole API that |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
300 allocates font-entities. */ |
90400 | 301 Lisp_Object (*list) P_ ((Lisp_Object frame, Lisp_Object font_spec)); |
302 | |
90564
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
303 /* Return a font entity most closely maching with FONT_SPEC on |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
304 FRAME. The closeness is detemined by the font backend, thus |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
305 `face-font-selection-order' is ignored here. */ |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
306 Lisp_Object (*match) P_ ((Lisp_Object frame, Lisp_Object font_spec)); |
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
307 |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
308 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
309 List available families. The value is a list of family names |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
310 (symbols). */ |
90400 | 311 Lisp_Object (*list_family) P_ ((Lisp_Object frame)); |
312 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
313 /* Optional (if FONT_EXTRA_INDEX is not Lisp_Save_Value). |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
314 Free FONT_EXTRA_INDEX field of FONT_ENTITY. */ |
90400 | 315 void (*free_entity) P_ ((Lisp_Object font_entity)); |
316 | |
317 /* Open a font specified by FONT_ENTITY on frame F. If the font is | |
318 scalable, open it with PIXEL_SIZE. */ | |
319 struct font *(*open) P_ ((FRAME_PTR f, Lisp_Object font_entity, | |
320 int pixel_size)); | |
321 | |
322 /* Close FONT on frame F. */ | |
323 void (*close) P_ ((FRAME_PTR f, struct font *font)); | |
324 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
325 /* Optional (if FACE->extra is not used). |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
326 Prepare FACE for displaying characters by FONT on frame F by |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
327 storing some data in FACE->extra. If successful, return 0. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
328 Otherwise, return -1. */ |
90400 | 329 int (*prepare_face) P_ ((FRAME_PTR f, struct face *face)); |
330 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
331 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
332 Done FACE for displaying characters by FACE->font on frame F. */ |
90400 | 333 void (*done_face) P_ ((FRAME_PTR f, struct face *face)); |
334 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
335 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
336 If FONT_ENTITY has a glyph for character C (Unicode code point), |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
337 return 1. If not, return 0. If a font must be opened to check |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
338 it, return -1. */ |
90400 | 339 int (*has_char) P_ ((Lisp_Object entity, int c)); |
340 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
341 /* Return a glyph code of FONT for characer C (Unicode code point). |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
342 If FONT doesn't have such a glyph, return FONT_INVALID_CODE. */ |
90400 | 343 unsigned (*encode_char) P_ ((struct font *font, int c)); |
344 | |
91033
e25192c0a550
(struct font_driver): Docstring of text_extents improved.
Kenichi Handa <handa@m17n.org>
parents:
90885
diff
changeset
|
345 /* Computate the total metrics of the NGLYPHS glyphs specified by |
e25192c0a550
(struct font_driver): Docstring of text_extents improved.
Kenichi Handa <handa@m17n.org>
parents:
90885
diff
changeset
|
346 the font FONT and the sequence of glyph codes CODE, and store the |
e25192c0a550
(struct font_driver): Docstring of text_extents improved.
Kenichi Handa <handa@m17n.org>
parents:
90885
diff
changeset
|
347 result in METRICS. */ |
90400 | 348 int (*text_extents) P_ ((struct font *font, |
349 unsigned *code, int nglyphs, | |
350 struct font_metrics *metrics)); | |
351 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
352 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
353 Draw glyphs between FROM and TO of S->char2b at (X Y) pixel |
90400 | 354 position of frame F with S->FACE and S->GC. If WITH_BACKGROUND |
355 is nonzero, fill the background in advance. It is assured that | |
356 WITH_BACKGROUND is zero when (FROM > 0 || TO < S->nchars). */ | |
357 int (*draw) P_ ((struct glyph_string *s, int from, int to, | |
358 int x, int y, int with_background)); | |
359 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
360 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
361 Store bitmap data for glyph-code CODE of FONT in BITMAP. It is |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
362 intended that this method is callled from the other font-driver |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
363 for actual drawing. */ |
90400 | 364 int (*get_bitmap) P_ ((struct font *font, unsigned code, |
365 struct font_bitmap *bitmap, | |
366 int bits_per_pixel)); | |
367 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
368 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
369 Free bitmap data in BITMAP. */ |
90400 | 370 void (*free_bitmap) P_ ((struct font *font, struct font_bitmap *bitmap)); |
371 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
372 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
373 Return an outline data for glyph-code CODE of FONT. The format |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
374 of the outline data depends on the font-driver. */ |
90400 | 375 void *(*get_outline) P_ ((struct font *font, unsigned code)); |
376 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
377 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
378 Free OUTLINE (that is obtained by the above method). */ |
90400 | 379 void (*free_outline) P_ ((struct font *font, void *outline)); |
380 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
381 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
382 Get coordinates of the INDEXth anchor point of the glyph whose |
90400 | 383 code is CODE. Store the coordinates in *X and *Y. Return 0 if |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
384 the operations was successfull. Otherwise return -1. */ |
90400 | 385 int (*anchor_point) P_ ((struct font *font, unsigned code, int index, |
386 int *x, int *y)); | |
387 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
388 /* Optional. |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
389 Return a list describing which scripts/languages FONT |
90400 | 390 supports by which GSUB/GPOS features of OpenType tables. */ |
391 Lisp_Object (*otf_capability) P_ ((struct font *font)); | |
392 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
393 /* Optional. |
90815 | 394 Apply FONT's OTF-FEATURES to the glyph string. |
90400 | 395 |
90815 | 396 FEATURES specifies which OTF features to apply in this format: |
397 (SCRIPT LANGSYS GSUB-FEATURE GPOS-FEATURE) | |
398 See the documentation of `font-drive-otf' for the detail. | |
90400 | 399 |
400 This method applies the specified features to the codes in the | |
401 elements of GSTRING-IN (between FROMth and TOth). The output | |
402 codes are stored in GSTRING-OUT at the IDXth element and the | |
403 following elements. | |
404 | |
405 Return the number of output codes. If none of the features are | |
406 applicable to the input data, return 0. If GSTRING-OUT is too | |
407 short, return -1. */ | |
90815 | 408 int (*otf_drive) P_ ((struct font *font, Lisp_Object features, |
90400 | 409 Lisp_Object gstring_in, int from, int to, |
90557
80c2d97a494e
(struct font): New member scalable.
Kenichi Handa <handa@m17n.org>
parents:
90550
diff
changeset
|
410 Lisp_Object gstring_out, int idx, int alternate_subst)); |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
411 |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
412 /* Optional. |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
413 Make the font driver ready for frame F. Usually this function |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
414 makes some data specific to F and store it in F by calling |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
415 font_put_frame_data (). */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
416 int (*start_for_frame) P_ ((FRAME_PTR f)); |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
417 |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
418 /* Optional. |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
419 End using the driver for frame F. Usually this function free |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
420 some data stored for F. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
421 int (*end_for_frame) P_ ((FRAME_PTR f)); |
90400 | 422 }; |
423 | |
424 | |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
425 /* Chain of font drivers. There's one global font driver list |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
426 (font_driver_list in font.c). In addition, each frame has it's own |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
427 font driver list at FRAME_PTR->font_driver_list. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
428 |
90400 | 429 struct font_driver_list |
430 { | |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
431 /* 1 iff this driver is currently used. It is igonred in the global |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
432 font driver list.*/ |
90550 | 433 int on; |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
434 /* Pointer to the font driver. */ |
90400 | 435 struct font_driver *driver; |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
436 /* Pointer to the next element of the chain. */ |
90400 | 437 struct font_driver_list *next; |
438 }; | |
439 | |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
440 |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
441 /* Chain of arbitrary data specific to each font driver. Each frame |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
442 has it's own font data list at FRAME_PTR->font_data_list. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
443 |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
444 struct font_data_list |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
445 { |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
446 /* Pointer to the font driver. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
447 struct font_driver *driver; |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
448 /* Data specific to the font driver. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
449 void *data; |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
450 /* Pointer to the next element of the chain. */ |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
451 struct font_data_list *next; |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
452 }; |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
453 |
90400 | 454 extern int enable_font_backend; |
455 | |
456 EXFUN (Ffont_spec, MANY); | |
90497 | 457 EXFUN (Flist_fonts, 4); |
90550 | 458 EXFUN (Fclear_font_cache, 0); |
90696
46ca345eec0b
(Ffont_xlfd_name): EXFUN it.
Kenichi Handa <handa@m17n.org>
parents:
90678
diff
changeset
|
459 EXFUN (Ffont_xlfd_name, 1); |
90400 | 460 |
461 extern Lisp_Object font_symbolic_weight P_ ((Lisp_Object font)); | |
462 extern Lisp_Object font_symbolic_slant P_ ((Lisp_Object font)); | |
463 extern Lisp_Object font_symbolic_width P_ ((Lisp_Object font)); | |
464 | |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
465 extern int font_match_p P_ ((Lisp_Object spec, Lisp_Object entity)); |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
466 |
90400 | 467 extern Lisp_Object font_find_object P_ ((struct font *font)); |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
468 extern Lisp_Object font_get_name P_ ((Lisp_Object font_object)); |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
469 extern Lisp_Object font_get_spec P_ ((Lisp_Object font_object)); |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
470 extern Lisp_Object font_get_frame P_ ((Lisp_Object font_object)); |
90400 | 471 extern int font_has_char P_ ((FRAME_PTR, Lisp_Object, int)); |
472 extern unsigned font_encode_char P_ ((Lisp_Object, int)); | |
473 | |
474 extern int font_set_lface_from_name P_ ((FRAME_PTR f, | |
475 Lisp_Object lface, | |
476 Lisp_Object fontname, | |
477 int force_p, int may_fail_p)); | |
478 extern Lisp_Object font_find_for_lface P_ ((FRAME_PTR f, Lisp_Object *lface, | |
479 Lisp_Object spec)); | |
90815 | 480 extern Lisp_Object font_open_for_lface P_ ((FRAME_PTR f, Lisp_Object entity, |
481 Lisp_Object *lface, | |
482 Lisp_Object spec)); | |
90400 | 483 extern void font_load_for_face P_ ((FRAME_PTR f, struct face *face)); |
484 extern void font_prepare_for_face P_ ((FRAME_PTR f, struct face *face)); | |
485 extern Lisp_Object font_open_by_name P_ ((FRAME_PTR f, char *name)); | |
90506
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
486 extern void font_close_object (FRAME_PTR f, Lisp_Object font_object); |
90400 | 487 |
488 extern Lisp_Object intern_downcase P_ ((char *str, int len)); | |
489 extern void font_update_sort_order P_ ((int *order)); | |
490 | |
90506
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
491 extern void font_merge_old_spec P_ ((Lisp_Object name, Lisp_Object family, |
5f608d7e835b
(font_close_object, font_merge_old_spec): Extern them.
Kenichi Handa <handa@m17n.org>
parents:
90502
diff
changeset
|
492 Lisp_Object registry, Lisp_Object spec)); |
90400 | 493 |
494 | |
90502 | 495 extern int font_parse_xlfd P_ ((char *name, Lisp_Object font)); |
90400 | 496 extern int font_unparse_xlfd P_ ((Lisp_Object font, int pixel_size, |
497 char *name, int bytes)); | |
90502 | 498 extern int font_parse_fcname P_ ((char *name, Lisp_Object font)); |
90469
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
499 extern int font_unparse_fcname P_ ((Lisp_Object font, int pixel_size, |
c9df3c05d0ed
(struct font_driver): Member parse_name deleted.
Kenichi Handa <handa@m17n.org>
parents:
90453
diff
changeset
|
500 char *name, int bytes)); |
90400 | 501 extern void register_font_driver P_ ((struct font_driver *driver, FRAME_PTR f)); |
502 extern void free_font_driver_list P_ ((FRAME_PTR f)); | |
90564
cb3eb6150704
(struct font_driver): New member `match'.
Kenichi Handa <handa@m17n.org>
parents:
90557
diff
changeset
|
503 extern Lisp_Object font_update_drivers P_ ((FRAME_PTR f, Lisp_Object list)); |
90542
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
504 extern Lisp_Object font_at P_ ((int c, EMACS_INT pos, struct face *face, |
2be199f501f8
(LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
Kenichi Handa <handa@m17n.org>
parents:
90531
diff
changeset
|
505 struct window *w, Lisp_Object object)); |
90400 | 506 |
507 extern struct font *font_prepare_composition P_ ((struct composition *cmp)); | |
508 | |
90885
ecd61e98251d
* font.h (font_put_extra): Moved declaration from font.c.
Jason Rumney <jasonr@gnu.org>
parents:
90864
diff
changeset
|
509 extern Lisp_Object font_put_extra P_ ((Lisp_Object font, Lisp_Object prop, |
ecd61e98251d
* font.h (font_put_extra): Moved declaration from font.c.
Jason Rumney <jasonr@gnu.org>
parents:
90864
diff
changeset
|
510 Lisp_Object val)); |
90400 | 511 |
512 #ifdef HAVE_LIBOTF | |
513 /* This can be used as `otf_capability' method of a font-driver. */ | |
514 extern Lisp_Object font_otf_capability P_ ((struct font *font)); | |
90815 | 515 /* This can be used as `otf_drive' method of a font-driver. */ |
516 extern int font_drive_otf P_ ((struct font *font, Lisp_Object otf_features, | |
90816
f123a47d3df6
(font_open_for_lface): Adjust prototype.
Kenichi Handa <handa@m17n.org>
parents:
90815
diff
changeset
|
517 Lisp_Object gstring_in, int from, int to, |
f123a47d3df6
(font_open_for_lface): Adjust prototype.
Kenichi Handa <handa@m17n.org>
parents:
90815
diff
changeset
|
518 Lisp_Object gstring_out, int idx, |
f123a47d3df6
(font_open_for_lface): Adjust prototype.
Kenichi Handa <handa@m17n.org>
parents:
90815
diff
changeset
|
519 int alternate_subst)); |
90400 | 520 #endif /* HAVE_LIBOTF */ |
521 | |
91114
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
522 extern int font_put_frame_data P_ ((FRAME_PTR f, |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
523 struct font_driver *driver, |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
524 void *data)); |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
525 extern void *font_get_frame_data P_ ((FRAME_PTR f, |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
526 struct font_driver *driver)); |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
527 |
ce50ee0149be
(struct font_bitmap): New member bits_per_pixel.
Kenichi Handa <handa@m17n.org>
parents:
91033
diff
changeset
|
528 |
90400 | 529 #ifdef HAVE_FREETYPE |
530 extern struct font_driver ftfont_driver; | |
531 #endif /* HAVE_FREETYPE */ | |
532 #ifdef HAVE_X_WINDOWS | |
533 extern struct font_driver xfont_driver; | |
534 extern struct font_driver ftxfont_driver; | |
535 #ifdef HAVE_XFT | |
536 extern struct font_driver xftfont_driver; | |
537 #endif /* HAVE_XFT */ | |
538 #endif /* HAVE_X_WINDOWS */ | |
539 #ifdef WINDOWSNT | |
540 extern struct font_driver w32font_driver; | |
541 #endif /* WINDOWSNT */ | |
542 #ifdef MAC_OS | |
543 extern struct font_driver atmfont_driver; | |
544 #endif /* MAC_OS */ | |
545 | |
546 #endif /* not EMACS_FONT_H */ | |
90427 | 547 |
548 /* arch-tag: 3b7260c3-5bec-4d6b-a0db-95c1b431b1a2 | |
549 (do not change this comment) */ |