zenilib: zenilib/jni/external/freetype2/src/winfonts/winfnt.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
winfnt.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* winfnt.h */
4 /* */
5 /* FreeType font driver for Windows FNT/FON files */
6 /* */
7 /* Copyright 1996-2001, 2002, 2003, 2004, 2007 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* Copyright 2007 Dmitry Timoshkov for Codeweavers */
10 /* */
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. */
16 /* */
17 /***************************************************************************/
18
19
20 #ifndef __WINFNT_H__
21 #define __WINFNT_H__
22
23
24 #include <ft2build.h>
25 #include FT_WINFONTS_H
26 #include FT_INTERNAL_DRIVER_H
27
28
29 FT_BEGIN_HEADER
30
31 #ifdef FT_CONFIG_OPTION_PIC
32 #error "this module does not support PIC yet"
33 #endif
34
35 typedef struct WinMZ_HeaderRec_
36 {
37 FT_UShort magic;
38 /* skipped content */
39 FT_UShort lfanew;
40
41 } WinMZ_HeaderRec;
42
43
44 typedef struct WinNE_HeaderRec_
45 {
46 FT_UShort magic;
47 /* skipped content */
48 FT_UShort resource_tab_offset;
49 FT_UShort rname_tab_offset;
50
51 } WinNE_HeaderRec;
52
53
54 typedef struct WinPE32_HeaderRec_
55 {
56 FT_ULong magic;
57 FT_UShort machine;
58 FT_UShort number_of_sections;
59 /* skipped content */
60 FT_UShort size_of_optional_header;
61 /* skipped content */
62 FT_UShort magic32;
63 /* skipped content */
64 FT_ULong rsrc_virtual_address;
65 FT_ULong rsrc_size;
66 /* skipped content */
67
68 } WinPE32_HeaderRec;
69
70
71 typedef struct WinPE32_SectionRec_
72 {
73 FT_Byte name[8];
74 /* skipped content */
75 FT_ULong virtual_address;
76 FT_ULong size_of_raw_data;
77 FT_ULong pointer_to_raw_data;
78 /* skipped content */
79
80 } WinPE32_SectionRec;
81
82
83 typedef struct WinPE_RsrcDirRec_
84 {
85 FT_ULong characteristics;
86 FT_ULong time_date_stamp;
87 FT_UShort major_version;
88 FT_UShort minor_version;
89 FT_UShort number_of_named_entries;
90 FT_UShort number_of_id_entries;
91
92 } WinPE_RsrcDirRec;
93
94
95 typedef struct WinPE_RsrcDirEntryRec_
96 {
97 FT_ULong name;
98 FT_ULong offset;
99
100 } WinPE_RsrcDirEntryRec;
101
102
103 typedef struct WinPE_RsrcDataEntryRec_
104 {
105 FT_ULong offset_to_data;
106 FT_ULong size;
107 FT_ULong code_page;
108 FT_ULong reserved;
109
110 } WinPE_RsrcDataEntryRec;
111
112
113 typedef struct WinNameInfoRec_
114 {
115 FT_UShort offset;
116 FT_UShort length;
117 FT_UShort flags;
118 FT_UShort id;
119 FT_UShort handle;
120 FT_UShort usage;
121
122 } WinNameInfoRec;
123
124
125 typedef struct WinResourceInfoRec_
126 {
127 FT_UShort type_id;
128 FT_UShort count;
129
130 } WinResourceInfoRec;
131
132
133 #define WINFNT_MZ_MAGIC 0x5A4D
134 #define WINFNT_NE_MAGIC 0x454E
135 #define WINFNT_PE_MAGIC 0x4550
136
137
138 typedef struct FNT_FontRec_
139 {
140 FT_ULong offset;
141
142 FT_WinFNT_HeaderRec header;
143
144 FT_Byte* fnt_frame;
145 FT_ULong fnt_size;
146 FT_String* family_name;
147
148 } FNT_FontRec, *FNT_Font;
149
150
151 typedef struct FNT_FaceRec_
152 {
153 FT_FaceRec root;
154 FNT_Font font;
155
156 FT_CharMap charmap_handle;
157 FT_CharMapRec charmap; /* a single charmap per face */
158
159 } FNT_FaceRec, *FNT_Face;
160
161
162 FT_EXPORT_VAR( const FT_Driver_ClassRec ) winfnt_driver_class;
163
164
165 FT_END_HEADER
166
167
168 #endif /* __WINFNT_H__ */
169
170
171 /* END */
WinNE_HeaderRec_
Definition: winfnt.h:44
WinPE_RsrcDataEntryRec
struct WinPE_RsrcDataEntryRec_ WinPE_RsrcDataEntryRec
FNT_FontRec_::offset
FT_ULong offset
Definition: winfnt.h:140
WinPE32_HeaderRec_::size_of_optional_header
FT_UShort size_of_optional_header
Definition: winfnt.h:60
FT_ULong
unsigned long FT_ULong
Definition: fttypes.h:249
WinNameInfoRec_::id
FT_UShort id
Definition: winfnt.h:118
WinPE32_HeaderRec_::magic32
FT_UShort magic32
Definition: winfnt.h:62
WinNameInfoRec_::length
FT_UShort length
Definition: winfnt.h:116
WinPE_RsrcDirRec_
Definition: winfnt.h:83
WinMZ_HeaderRec_
Definition: winfnt.h:35
FT_END_HEADER
#define FT_END_HEADER
Definition: ftheader.h:54
FNT_FaceRec_::font
FNT_Font font
Definition: winfnt.h:154
WinPE_RsrcDirEntryRec_
Definition: winfnt.h:95
WinResourceInfoRec
struct WinResourceInfoRec_ WinResourceInfoRec
WinPE32_HeaderRec
struct WinPE32_HeaderRec_ WinPE32_HeaderRec
FNT_FaceRec_
Definition: winfnt.h:151
FT_WinFNT_HeaderRec_
Definition: ftwinfnt.h:183
FT_Driver_ClassRec_
Definition: ftdriver.h:182
WinPE32_HeaderRec_
Definition: winfnt.h:54
WinMZ_HeaderRec
FT_BEGIN_HEADER struct WinMZ_HeaderRec_ WinMZ_HeaderRec
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
WinPE_RsrcDirEntryRec
struct WinPE_RsrcDirEntryRec_ WinPE_RsrcDirEntryRec
WinMZ_HeaderRec_::magic
FT_UShort magic
Definition: winfnt.h:37
FNT_FontRec_
Definition: winfnt.h:138
WinPE32_SectionRec_::size_of_raw_data
FT_ULong size_of_raw_data
Definition: winfnt.h:76
WinNameInfoRec_
Definition: winfnt.h:113
WinNameInfoRec
struct WinNameInfoRec_ WinNameInfoRec
WinPE_RsrcDirRec_::number_of_named_entries
FT_UShort number_of_named_entries
Definition: winfnt.h:89
WinPE32_HeaderRec_::machine
FT_UShort machine
Definition: winfnt.h:57
WinPE_RsrcDirRec_::number_of_id_entries
FT_UShort number_of_id_entries
Definition: winfnt.h:90
FT_Byte
unsigned char FT_Byte
Definition: fttypes.h:150
FT_EXPORT_VAR
#define FT_EXPORT_VAR(x)
Definition: ftconfig.h:522
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
WinPE_RsrcDirRec_::minor_version
FT_UShort minor_version
Definition: winfnt.h:88
WinPE32_SectionRec_
Definition: winfnt.h:71
WinPE32_SectionRec_::virtual_address
FT_ULong virtual_address
Definition: winfnt.h:75
WinResourceInfoRec_::count
FT_UShort count
Definition: winfnt.h:128
FNT_FontRec_::header
FT_WinFNT_HeaderRec header
Definition: winfnt.h:142
WinNameInfoRec_::flags
FT_UShort flags
Definition: winfnt.h:117
WinPE_RsrcDirRec_::major_version
FT_UShort major_version
Definition: winfnt.h:87
FNT_FontRec_::family_name
FT_String * family_name
Definition: winfnt.h:146
WinPE_RsrcDataEntryRec_::size
FT_ULong size
Definition: winfnt.h:106
FT_FaceRec_
Definition: freetype.h:912
FNT_FontRec_::fnt_frame
FT_Byte * fnt_frame
Definition: winfnt.h:144
FNT_FontRec_::fnt_size
FT_ULong fnt_size
Definition: winfnt.h:145
FNT_Font
struct FNT_FontRec_ * FNT_Font
FT_String
char FT_String
Definition: fttypes.h:183
WinPE32_HeaderRec_::magic
FT_ULong magic
Definition: winfnt.h:56
WinPE32_HeaderRec_::rsrc_size
FT_ULong rsrc_size
Definition: winfnt.h:65
FNT_FontRec
struct FNT_FontRec_ FNT_FontRec
FNT_Face
struct FNT_FaceRec_ * FNT_Face
WinNameInfoRec_::offset
FT_UShort offset
Definition: winfnt.h:115
WinPE_RsrcDirRec_::time_date_stamp
FT_ULong time_date_stamp
Definition: winfnt.h:86
FNT_FaceRec
struct FNT_FaceRec_ FNT_FaceRec
WinResourceInfoRec_
Definition: winfnt.h:125
WinNE_HeaderRec_::resource_tab_offset
FT_UShort resource_tab_offset
Definition: winfnt.h:48
WinMZ_HeaderRec_::lfanew
FT_UShort lfanew
Definition: winfnt.h:39
WinNE_HeaderRec_::magic
FT_UShort magic
Definition: winfnt.h:46
winfnt_driver_class
FT_CALLBACK_TABLE_DEF const FT_Driver_ClassRec winfnt_driver_class
Definition: winfnt.c:1115
ft2build.h
FT_CharMapRec_
Definition: freetype.h:736
WinNameInfoRec_::usage
FT_UShort usage
Definition: winfnt.h:120
WinPE32_HeaderRec_::number_of_sections
FT_UShort number_of_sections
Definition: winfnt.h:58
WinPE_RsrcDataEntryRec_::reserved
FT_ULong reserved
Definition: winfnt.h:108
WinPE32_SectionRec
struct WinPE32_SectionRec_ WinPE32_SectionRec
WinPE_RsrcDirRec_::characteristics
FT_ULong characteristics
Definition: winfnt.h:85
WinPE_RsrcDirRec
struct WinPE_RsrcDirRec_ WinPE_RsrcDirRec
WinResourceInfoRec_::type_id
FT_UShort type_id
Definition: winfnt.h:127
WinPE32_SectionRec_::pointer_to_raw_data
FT_ULong pointer_to_raw_data
Definition: winfnt.h:77
WinNE_HeaderRec
struct WinNE_HeaderRec_ WinNE_HeaderRec
FNT_FaceRec_::charmap_handle
FT_CharMap charmap_handle
Definition: winfnt.h:156
WinPE_RsrcDirEntryRec_::name
FT_ULong name
Definition: winfnt.h:97
FT_UShort
unsigned short FT_UShort
Definition: fttypes.h:205
WinPE_RsrcDataEntryRec_::offset_to_data
FT_ULong offset_to_data
Definition: winfnt.h:105
WinPE_RsrcDataEntryRec_::code_page
FT_ULong code_page
Definition: winfnt.h:107
WinPE_RsrcDataEntryRec_
Definition: winfnt.h:103
WinNameInfoRec_::handle
FT_UShort handle
Definition: winfnt.h:119
WinPE32_HeaderRec_::rsrc_virtual_address
FT_ULong rsrc_virtual_address
Definition: winfnt.h:64
FNT_FaceRec_::charmap
FT_CharMapRec charmap
Definition: winfnt.h:157
FNT_FaceRec_::root
FT_FaceRec root
Definition: winfnt.h:153
WinPE_RsrcDirEntryRec_::offset
FT_ULong offset
Definition: winfnt.h:98
WinNE_HeaderRec_::rname_tab_offset
FT_UShort rname_tab_offset
Definition: winfnt.h:49