diff options
author | Andrew Innes <andrewi@gnu.org> | 2000-10-21 13:31:55 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 2000-10-21 13:31:55 +0000 |
commit | 78229cf17b39fe752af77f98031a45f4988f43a5 (patch) | |
tree | d32bf0c2ca798726f11baec4d534244df30299f8 /src/w32gui.h | |
parent | eeddd5a0bcb70eae60023bc9c8a96e8169265366 (diff) |
(w32_char_font_type): Move enum from w32term.c
Diffstat (limited to 'src/w32gui.h')
-rw-r--r-- | src/w32gui.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/w32gui.h b/src/w32gui.h index fdec0ab55b..3d4909217f 100644 --- a/src/w32gui.h +++ b/src/w32gui.h @@ -29,11 +29,35 @@ Boston, MA 02111-1307, USA. */ #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; |