# HG changeset patch # User Andrew Innes # Date 972135115 0 # Node ID 22afed8d7e3fe01eb97ca2afc218387bf180cd8c # Parent 58dcefea99de8797dd1c2bce44f6a2ac204a5221 (w32_char_font_type): Move enum from w32term.c diff -r 58dcefea99de -r 22afed8d7e3f src/w32gui.h --- a/src/w32gui.h Sat Oct 21 13:31:20 2000 +0000 +++ b/src/w32gui.h Sat Oct 21 13:31:55 2000 +0000 @@ -29,11 +29,35 @@ #include "w32bdf.h" +/* Emulate XCharStruct. */ +typedef struct _XCharStruct +{ + short rbearing; + short lbearing; + short width; + short ascent; + short descent; +} XCharStruct; + +enum w32_char_font_type +{ + UNKNOWN_FONT, + ANSI_FONT, + UNICODE_FONT, + BDF_1D_FONT, + BDF_2D_FONT +}; + typedef struct W32FontStruct { + enum w32_char_font_type font_type; TEXTMETRIC tm; HFONT hfont; bdffont *bdf; int double_byte_p; + XCharStruct max_bounds; + XCharStruct scratch; + /* Only store info for ascii chars, if not fixed pitch. */ + XCharStruct * per_char; } W32FontStruct; typedef struct W32FontStruct XFontStruct;