comparison src/w32font.h @ 94916:283ee643ce8b

(struct w32font_info): New member. (FONT_COMPAT): New macro. (w32font_open_internal): Prototype adjusted.
author Kenichi Handa <handa@m17n.org>
date Wed, 14 May 2008 01:04:21 +0000
parents 0fecf07dfe3c
children 29adfc9354e7
comparison
equal deleted inserted replaced
94915:39c862063355 94916:283ee643ce8b
53 struct font font; 53 struct font font;
54 TEXTMETRIC metrics; 54 TEXTMETRIC metrics;
55 unsigned int glyph_idx; 55 unsigned int glyph_idx;
56 struct w32_metric_cache **cached_metrics; 56 struct w32_metric_cache **cached_metrics;
57 int n_cache_blocks; 57 int n_cache_blocks;
58 W32FontStruct *compat_w32_font;
58 }; 59 };
60
61 #define FONT_COMPAT(f) (((struct w32font_info *) (f))->compat_w32_font)
59 62
60 #define CACHE_BLOCKSIZE 128 63 #define CACHE_BLOCKSIZE 128
61 64
62 Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe)); 65 Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe));
63 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame, 66 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame,
65 int opentype_only)); 68 int opentype_only));
66 Lisp_Object w32font_match_internal P_ ((Lisp_Object frame, 69 Lisp_Object w32font_match_internal P_ ((Lisp_Object frame,
67 Lisp_Object font_spec, 70 Lisp_Object font_spec,
68 int opentype_only)); 71 int opentype_only));
69 int w32font_open_internal P_ ((FRAME_PTR f, Lisp_Object font_entity, 72 int w32font_open_internal P_ ((FRAME_PTR f, Lisp_Object font_entity,
70 int pixel_size, struct w32font_info *w32_font)); 73 int pixel_size, Lisp_Object font_object));
71 void w32font_close P_ ((FRAME_PTR f, struct font *font)); 74 void w32font_close P_ ((FRAME_PTR f, struct font *font));
72 int w32font_has_char P_ ((Lisp_Object entity, int c)); 75 int w32font_has_char P_ ((Lisp_Object entity, int c));
73 int w32font_text_extents P_ ((struct font *font, unsigned *code, int nglyphs, 76 int w32font_text_extents P_ ((struct font *font, unsigned *code, int nglyphs,
74 struct font_metrics *metrics)); 77 struct font_metrics *metrics));
75 int w32font_draw P_ ((struct glyph_string *s, int from, int to, 78 int w32font_draw P_ ((struct glyph_string *s, int from, int to,