aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1998-10-20 22:16:00 +0000
committerGeoff Voelker1998-10-20 22:16:00 +0000
commitd82f9149cb2ca7a0a617eb2026155b32eef952a5 (patch)
tree4d4d8a94a3af2cb259795728fc824e8a74fcf9e8
parentcabb23bc0d39f05bcd8b2174e083cb4208ccdc85 (diff)
downloademacs-d82f9149cb2ca7a0a617eb2026155b32eef952a5.tar.gz
emacs-d82f9149cb2ca7a0a617eb2026155b32eef952a5.zip
Remove redundant font_info struct definition.
(Vx_pixel_size_width_font_regexp, unibyte_display_via_language_environment): Declare variables. (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font): Declare functions. w32_output): New fields font_baseline and fontset. (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
-rw-r--r--src/w32term.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 4c7c7a19a7f..6b60215314c 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -54,15 +54,6 @@ enum text_cursor_kinds {
54 filled_box_cursor, hollow_box_cursor, bar_cursor 54 filled_box_cursor, hollow_box_cursor, bar_cursor
55}; 55};
56 56
57/* This data type is used for the font_table field
58 of struct w32_display_info. */
59
60struct font_info
61{
62 XFontStruct *font;
63 char *name;
64};
65
66/* Structure recording bitmaps and reference count. 57/* Structure recording bitmaps and reference count.
67 If REFCOUNT is 0 then this record is free to be reused. */ 58 If REFCOUNT is 0 then this record is free to be reused. */
68 59
@@ -131,7 +122,7 @@ struct w32_display_info
131 /* A table of all the fonts we have already loaded. */ 122 /* A table of all the fonts we have already loaded. */
132 struct font_info *font_table; 123 struct font_info *font_table;
133 124
134 /* The current capacity of x_font_table. */ 125 /* The current capacity of font_table. */
135 int font_table_size; 126 int font_table_size;
136 127
137 /* These variables describe the range of text currently shown 128 /* These variables describe the range of text currently shown
@@ -202,11 +193,21 @@ extern struct w32_display_info one_w32_display_info;
202 FONT-LIST-CACHE records previous values returned by x-list-fonts. */ 193 FONT-LIST-CACHE records previous values returned by x-list-fonts. */
203extern Lisp_Object w32_display_name_list; 194extern Lisp_Object w32_display_name_list;
204 195
196/* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */
197extern Lisp_Object Vx_pixel_size_width_font_regexp;
198
199/* A flag to control how to display unibyte 8-bit character. */
200extern int unibyte_display_via_language_environment;
201
205extern struct w32_display_info *x_display_info_for_display (); 202extern struct w32_display_info *x_display_info_for_display ();
206extern struct w32_display_info *x_display_info_for_name (); 203extern struct w32_display_info *x_display_info_for_name ();
207 204
208extern struct w32_display_info *w32_term_init (); 205extern struct w32_display_info *w32_term_init ();
209 206
207extern Lisp_Object w32_list_fonts ();
208extern struct font_info *w32_get_font_info (), *w32_query_font ();
209extern void w32_find_ccl_program();
210
210/* Each W32 frame object points to its own struct w32_display object 211/* Each W32 frame object points to its own struct w32_display object
211 in the output_data.w32 field. The w32_display structure contains all 212 in the output_data.w32 field. The w32_display structure contains all
212 the information that is specific to W32 windows. */ 213 the information that is specific to W32 windows. */
@@ -248,8 +249,16 @@ struct w32_output
248 (see the explicit_parent field, below). */ 249 (see the explicit_parent field, below). */
249 Window parent_desc; 250 Window parent_desc;
250 251
252 /* Default ASCII font of this frame. */
251 XFontStruct *font; 253 XFontStruct *font;
252 254
255 /* The baseline position of the default ASCII font. */
256 int font_baseline;
257
258 /* If a fontset is specified for this frame instead of font, this
259 value contains an ID of the fontset, else -1. */
260 int fontset;
261
253 /* Pixel values used for various purposes. 262 /* Pixel values used for various purposes.
254 border_pixel may be -1 meaning use a gray tile. */ 263 border_pixel may be -1 meaning use a gray tile. */
255 unsigned long background_pixel; 264 unsigned long background_pixel;
@@ -342,11 +351,15 @@ struct w32_output
342#define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.w32->foreground_pixel) 351#define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.w32->foreground_pixel)
343#define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.w32->background_pixel) 352#define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.w32->background_pixel)
344#define FRAME_FONT(f) ((f)->output_data.w32->font) 353#define FRAME_FONT(f) ((f)->output_data.w32->font)
354#define FRAME_FONTSET(f) ((f)->output_data.w32->fontset)
345#define FRAME_INTERNAL_BORDER_WIDTH(f) ((f)->output_data.w32->internal_border_width) 355#define FRAME_INTERNAL_BORDER_WIDTH(f) ((f)->output_data.w32->internal_border_width)
346 356
347/* This gives the w32_display_info structure for the display F is on. */ 357/* This gives the w32_display_info structure for the display F is on. */
348#define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info) 358#define FRAME_W32_DISPLAY_INFO(f) (&one_w32_display_info)
349 359
360/* This is the 'font_info *' which frame F has. */
361#define FRAME_W32_FONT_TABLE(f) (FRAME_W32_DISPLAY_INFO (f)->font_table)
362
350/* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */ 363/* These two really ought to be called FRAME_PIXEL_{WIDTH,HEIGHT}. */
351#define PIXEL_WIDTH(f) ((f)->output_data.w32->pixel_width) 364#define PIXEL_WIDTH(f) ((f)->output_data.w32->pixel_width)
352#define PIXEL_HEIGHT(f) ((f)->output_data.w32->pixel_height) 365#define PIXEL_HEIGHT(f) ((f)->output_data.w32->pixel_height)
@@ -585,7 +598,7 @@ w32_fill_rect (f,hdc,f->output_data.w32->background_pixel,lprect)
585#define w32_clear_area(f,hdc,x,y,nx,ny) \ 598#define w32_clear_area(f,hdc,x,y,nx,ny) \
586w32_fill_area (f,hdc,f->output_data.w32->background_pixel,x,y,nx,ny) 599w32_fill_area (f,hdc,f->output_data.w32->background_pixel,x,y,nx,ny)
587 600
588extern XFontStruct *w32_load_font (); 601extern struct font_info *w32_load_font ();
589extern void w32_unload_font (); 602extern void w32_unload_font ();
590 603
591/* Define for earlier versions of Visual C */ 604/* Define for earlier versions of Visual C */