1 /***************************************************************************/
5 /* FreeType font driver for Windows FNT/FON files */
7 /* Copyright 1996-2000 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
16 /***************************************************************************/
22 #include <freetype/internal/ftdriver.h>
25 typedef struct WinMZ_Header_
34 typedef struct WinNE_Header_
38 FT_UShort resource_tab_offset
;
39 FT_UShort rname_tab_offset
;
44 typedef struct WinNameInfo_
56 typedef struct WinResourceInfo_
64 #define WINFNT_MZ_MAGIC 0x5A4D
65 #define WINFNT_NE_MAGIC 0x454E
68 typedef struct WinFNT_Header_
72 FT_Byte copyright
[60];
74 FT_UShort nominal_point_size
;
75 FT_UShort vertical_resolution
;
76 FT_UShort horizontal_resolution
;
78 FT_UShort internal_leading
;
79 FT_UShort external_leading
;
85 FT_UShort pixel_width
;
86 FT_UShort pixel_height
;
87 FT_Byte pitch_and_family
;
94 FT_UShort bytes_per_row
;
95 FT_ULong device_offset
;
96 FT_ULong face_name_offset
;
97 FT_ULong bits_pointer
;
104 FT_UShort color_table_offset
;
105 FT_Byte reserved2
[4];
110 typedef struct FNT_Font_
115 WinFNT_Header header
;
123 typedef struct FNT_SizeRec_
128 } FNT_SizeRec
, *FNT_Size
;
131 typedef struct FNT_FaceRec_
138 FT_CharMap charmap_handle
;
139 FT_CharMapRec charmap
; /* a single charmap per face */
141 } FNT_FaceRec
, *FNT_Face
;
144 FT_EXPORT_VAR( const FT_Driver_Class
) winfnt_driver_class
;
147 #endif /* WINFNT_H */