aboutsummaryrefslogtreecommitdiffstats
path: root/src/ftxfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ftxfont.c')
-rw-r--r--src/ftxfont.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ftxfont.c b/src/ftxfont.c
index c6fa858af74..bbba3ca8163 100644
--- a/src/ftxfont.c
+++ b/src/ftxfont.c
@@ -38,6 +38,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
38 38
39static Lisp_Object Qftx; 39static Lisp_Object Qftx;
40 40
41#if defined HAVE_XFT || !defined HAVE_FREETYPE
42static
43#endif
44struct font_driver ftxfont_driver;
45
41/* Prototypes for helper function. */ 46/* Prototypes for helper function. */
42static GC *ftxfont_get_gcs (FRAME_PTR, unsigned long, unsigned long); 47static GC *ftxfont_get_gcs (FRAME_PTR, unsigned long, unsigned long);
43static int ftxfont_draw_bitmap (FRAME_PTR, GC, GC *, struct font *, 48static int ftxfont_draw_bitmap (FRAME_PTR, GC, GC *, struct font *,
@@ -233,13 +238,11 @@ static Lisp_Object ftxfont_open (FRAME_PTR, Lisp_Object, int);
233static void ftxfont_close (FRAME_PTR, struct font *); 238static void ftxfont_close (FRAME_PTR, struct font *);
234static int ftxfont_draw (struct glyph_string *, int, int, int, int, int); 239static int ftxfont_draw (struct glyph_string *, int, int, int, int, int);
235 240
236struct font_driver ftxfont_driver;
237
238static Lisp_Object 241static Lisp_Object
239ftxfont_list (Lisp_Object frame, Lisp_Object spec) 242ftxfont_list (Lisp_Object frame, Lisp_Object spec)
240{ 243{
241 Lisp_Object list = ftfont_driver.list (frame, spec), tail; 244 Lisp_Object list = ftfont_driver.list (frame, spec), tail;
242 245
243 for (tail = list; CONSP (tail); tail = XCDR (tail)) 246 for (tail = list; CONSP (tail); tail = XCDR (tail))
244 ASET (XCAR (tail), FONT_TYPE_INDEX, Qftx); 247 ASET (XCAR (tail), FONT_TYPE_INDEX, Qftx);
245 return list; 248 return list;
@@ -350,13 +353,13 @@ static int
350ftxfont_end_for_frame (FRAME_PTR f) 353ftxfont_end_for_frame (FRAME_PTR f)
351{ 354{
352 struct ftxfont_frame_data *data = font_get_frame_data (f, &ftxfont_driver); 355 struct ftxfont_frame_data *data = font_get_frame_data (f, &ftxfont_driver);
353 356
354 BLOCK_INPUT; 357 BLOCK_INPUT;
355 while (data) 358 while (data)
356 { 359 {
357 struct ftxfont_frame_data *next = data->next; 360 struct ftxfont_frame_data *next = data->next;
358 int i; 361 int i;
359 362
360 for (i = 0; i < 6; i++) 363 for (i = 0; i < 6; i++)
361 XFreeGC (FRAME_X_DISPLAY (f), data->gcs[i]); 364 XFreeGC (FRAME_X_DISPLAY (f), data->gcs[i]);
362 free (data); 365 free (data);
@@ -384,4 +387,3 @@ syms_of_ftxfont (void)
384 ftxfont_driver.end_for_frame = ftxfont_end_for_frame; 387 ftxfont_driver.end_for_frame = ftxfont_end_for_frame;
385 register_font_driver (&ftxfont_driver, NULL); 388 register_font_driver (&ftxfont_driver, NULL);
386} 389}
387