aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes2000-10-21 13:31:55 +0000
committerAndrew Innes2000-10-21 13:31:55 +0000
commit78229cf17b39fe752af77f98031a45f4988f43a5 (patch)
treed32bf0c2ca798726f11baec4d534244df30299f8 /src
parenteeddd5a0bcb70eae60023bc9c8a96e8169265366 (diff)
downloademacs-78229cf17b39fe752af77f98031a45f4988f43a5.tar.gz
emacs-78229cf17b39fe752af77f98031a45f4988f43a5.zip
(w32_char_font_type): Move enum from w32term.c
Diffstat (limited to 'src')
-rw-r--r--src/w32gui.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/w32gui.h b/src/w32gui.h
index fdec0ab55ba..3d4909217fe 100644
--- a/src/w32gui.h
+++ b/src/w32gui.h
@@ -29,11 +29,35 @@ Boston, MA 02111-1307, USA. */
29 29
30#include "w32bdf.h" 30#include "w32bdf.h"
31 31
32/* Emulate XCharStruct. */
33typedef struct _XCharStruct
34{
35 short rbearing;
36 short lbearing;
37 short width;
38 short ascent;
39 short descent;
40} XCharStruct;
41
42enum w32_char_font_type
43{
44 UNKNOWN_FONT,
45 ANSI_FONT,
46 UNICODE_FONT,
47 BDF_1D_FONT,
48 BDF_2D_FONT
49};
50
32typedef struct W32FontStruct { 51typedef struct W32FontStruct {
52 enum w32_char_font_type font_type;
33 TEXTMETRIC tm; 53 TEXTMETRIC tm;
34 HFONT hfont; 54 HFONT hfont;
35 bdffont *bdf; 55 bdffont *bdf;
36 int double_byte_p; 56 int double_byte_p;
57 XCharStruct max_bounds;
58 XCharStruct scratch;
59 /* Only store info for ascii chars, if not fixed pitch. */
60 XCharStruct * per_char;
37} W32FontStruct; 61} W32FontStruct;
38 62
39typedef struct W32FontStruct XFontStruct; 63typedef struct W32FontStruct XFontStruct;