1 /***************************************************************************/
5 /* Basic Windows FNT/FON type definitions and interface (specification */
8 /* Copyright 1996-2001 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */
17 /***************************************************************************/
20 #ifndef __FNTTYPES_H__
21 #define __FNTTYPES_H__
25 #include FT_FREETYPE_H
31 typedef struct WinMZ_Header_
40 typedef struct WinNE_Header_
44 FT_UShort resource_tab_offset;
45 FT_UShort rname_tab_offset;
50 typedef struct WinNameInfo_
62 typedef struct WinResourceInfo_
70 #define WINFNT_MZ_MAGIC 0x5A4D
71 #define WINFNT_NE_MAGIC 0x454E
74 typedef struct WinFNT_Header_
78 FT_Byte copyright[60];
80 FT_UShort nominal_point_size;
81 FT_UShort vertical_resolution;
82 FT_UShort horizontal_resolution;
84 FT_UShort internal_leading;
85 FT_UShort external_leading;
91 FT_UShort pixel_width;
92 FT_UShort pixel_height;
93 FT_Byte pitch_and_family;
100 FT_UShort bytes_per_row;
101 FT_ULong device_offset;
102 FT_ULong face_name_offset;
103 FT_ULong bits_pointer;
104 FT_ULong bits_offset;
110 FT_UShort color_table_offset;
111 FT_Byte reserved2[4];
116 typedef struct FNT_Font_
121 WinFNT_Header header;
129 typedef struct FNT_SizeRec_
134 } FNT_SizeRec, *FNT_Size;
137 typedef struct FNT_FaceRec_
144 FT_CharMap charmap_handle;
145 FT_CharMapRec charmap; /* a single charmap per face */
147 } FNT_FaceRec, *FNT_Face;
152 #endif /* __FNTTYPES_H__ */