diff options
| author | Andrew Innes | 2000-10-21 13:31:55 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-10-21 13:31:55 +0000 |
| commit | 78229cf17b39fe752af77f98031a45f4988f43a5 (patch) | |
| tree | d32bf0c2ca798726f11baec4d534244df30299f8 /src | |
| parent | eeddd5a0bcb70eae60023bc9c8a96e8169265366 (diff) | |
| download | emacs-78229cf17b39fe752af77f98031a45f4988f43a5.tar.gz emacs-78229cf17b39fe752af77f98031a45f4988f43a5.zip | |
(w32_char_font_type): Move enum from w32term.c
Diffstat (limited to 'src')
| -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 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. */ | ||
| 33 | typedef struct _XCharStruct | ||
| 34 | { | ||
| 35 | short rbearing; | ||
| 36 | short lbearing; | ||
| 37 | short width; | ||
| 38 | short ascent; | ||
| 39 | short descent; | ||
| 40 | } XCharStruct; | ||
| 41 | |||
| 42 | enum w32_char_font_type | ||
| 43 | { | ||
| 44 | UNKNOWN_FONT, | ||
| 45 | ANSI_FONT, | ||
| 46 | UNICODE_FONT, | ||
| 47 | BDF_1D_FONT, | ||
| 48 | BDF_2D_FONT | ||
| 49 | }; | ||
| 50 | |||
| 32 | typedef struct W32FontStruct { | 51 | typedef 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 | ||
| 39 | typedef struct W32FontStruct XFontStruct; | 63 | typedef struct W32FontStruct XFontStruct; |