1 /***************************************************************************/
5 /* FreeType font driver for Windows FNT/FON files */
7 /* Copyright 1996-2001, 2002, 2003, 2004, 2007 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* Copyright 2007 Dmitry Timoshkov for Codeweavers */
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 /***************************************************************************/
25 #include FT_WINFONTS_H
26 #include FT_INTERNAL_DRIVER_H
31 typedef struct WinMZ_HeaderRec_
40 typedef struct WinNE_HeaderRec_
44 FT_UShort resource_tab_offset
;
45 FT_UShort rname_tab_offset
;
50 typedef struct WinPE32_HeaderRec_
54 FT_UShort number_of_sections
;
56 FT_UShort size_of_optional_header
;
60 FT_ULong rsrc_virtual_address
;
67 typedef struct WinPE32_SectionRec_
71 FT_ULong virtual_address
;
72 FT_ULong size_of_raw_data
;
73 FT_ULong pointer_to_raw_data
;
79 typedef struct WinPE_RsrcDirRec_
81 FT_ULong characteristics
;
82 FT_ULong time_date_stamp
;
83 FT_UShort major_version
;
84 FT_UShort minor_version
;
85 FT_UShort number_of_named_entries
;
86 FT_UShort number_of_id_entries
;
91 typedef struct WinPE_RsrcDirEntryRec_
96 } WinPE_RsrcDirEntryRec
;
99 typedef struct WinPE_RsrcDataEntryRec_
101 FT_ULong offset_to_data
;
106 } WinPE_RsrcDataEntryRec
;
109 typedef struct WinNameInfoRec_
121 typedef struct WinResourceInfoRec_
126 } WinResourceInfoRec
;
129 #define WINFNT_MZ_MAGIC 0x5A4D
130 #define WINFNT_NE_MAGIC 0x454E
131 #define WINFNT_PE_MAGIC 0x4550
134 typedef struct FNT_FontRec_
138 FT_WinFNT_HeaderRec header
;
142 FT_String
* family_name
;
144 } FNT_FontRec
, *FNT_Font
;
147 typedef struct FNT_FaceRec_
152 FT_CharMap charmap_handle
;
153 FT_CharMapRec charmap
; /* a single charmap per face */
155 } FNT_FaceRec
, *FNT_Face
;
158 FT_EXPORT_VAR( const FT_Driver_ClassRec
) winfnt_driver_class
;
164 #endif /* __WINFNT_H__ */