ReactOS
0.4.16-dev-109-gf4cb10f
font.h
Go to the documentation of this file.
1
#pragma once
2
3
4
typedef
struct
_FONT_ENTRY
5
{
6
LIST_ENTRY
ListEntry
;
7
FONTGDI
*
Font
;
8
UNICODE_STRING
FaceName
;
9
UNICODE_STRING
StyleName
;
10
BYTE
NotEnum
;
11
}
FONT_ENTRY
, *
PFONT_ENTRY
;
12
13
typedef
struct
_FONT_ENTRY_MEM
14
{
15
LIST_ENTRY
ListEntry
;
16
FONT_ENTRY
*
Entry
;
17
}
FONT_ENTRY_MEM
, *
PFONT_ENTRY_MEM
;
18
19
typedef
struct
_FONT_ENTRY_COLL_MEM
20
{
21
LIST_ENTRY
ListEntry
;
22
HANDLE
Handle
;
23
FONT_ENTRY_MEM
*
Entry
;
24
}
FONT_ENTRY_COLL_MEM
, *
PFONT_ENTRY_COLL_MEM
;
25
26
#include <pshpack1.h>
/* We don't like padding for these structures for hashing */
27
28
typedef
struct
_FONT_ASPECT
29
{
30
_ANONYMOUS_UNION
union
{
31
WORD
EmuBoldItalic
;
32
struct
{
33
BYTE
Bold
;
34
BYTE
Italic
;
35
}
Emu
;
36
}
DUMMYUNIONNAME
;
37
WORD
RenderMode
;
38
}
FONT_ASPECT
, *
PFONT_ASPECT
;
39
40
typedef
struct
_FONT_CACHE_HASHED
41
{
42
INT
GlyphIndex
;
43
FT_Face
Face
;
44
LONG
lfHeight
;
45
LONG
lfWidth
;
46
_ANONYMOUS_UNION
union
{
47
DWORD
AspectValue
;
48
FONT_ASPECT
Aspect
;
49
}
DUMMYUNIONNAME
;
50
FT_Matrix
matTransform
;
51
}
FONT_CACHE_HASHED
, *
PFONT_CACHE_HASHED
;
52
53
#include <poppack.h>
54
55
typedef
struct
_FONT_CACHE_ENTRY
56
{
57
LIST_ENTRY
ListEntry
;
58
FT_BitmapGlyph
BitmapGlyph
;
59
DWORD
dwHash
;
60
FONT_CACHE_HASHED
Hashed
;
61
}
FONT_CACHE_ENTRY
, *
PFONT_CACHE_ENTRY
;
62
63
C_ASSERT
(
FIELD_OFFSET
(
FONT_CACHE_ENTRY
, Hashed) %
sizeof
(
DWORD
) == 0);
/* for hashing */
64
C_ASSERT
(
sizeof
(
FONT_CACHE_HASHED
) %
sizeof
(
DWORD
) == 0);
/* for hashing */
65
66
/*
67
* FONTSUBST_... --- constants for font substitutes
68
*/
69
#define FONTSUBST_FROM 0
70
#define FONTSUBST_TO 1
71
#define FONTSUBST_FROM_AND_TO 2
72
73
/*
74
* FONTSUBST_ENTRY --- font substitute entry
75
*/
76
typedef
struct
FONTSUBST_ENTRY
77
{
78
LIST_ENTRY
ListEntry
;
79
UNICODE_STRING
FontNames
[
FONTSUBST_FROM_AND_TO
];
80
BYTE
CharSets
[
FONTSUBST_FROM_AND_TO
];
81
}
FONTSUBST_ENTRY
, *
PFONTSUBST_ENTRY
;
82
83
84
typedef
struct
GDI_LOAD_FONT
85
{
86
PUNICODE_STRING
pFileName
;
87
PSHARED_MEM
Memory
;
88
DWORD
Characteristics
;
89
UNICODE_STRING
RegValueName
;
90
BOOL
IsTrueType
;
91
BYTE
CharSet
;
92
PFONT_ENTRY_MEM
PrivateEntry
;
93
}
GDI_LOAD_FONT
, *
PGDI_LOAD_FONT
;
94
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
WORD
unsigned short WORD
Definition:
ntddk_ex.h:93
FONT_CACHE_HASHED
struct _FONT_CACHE_HASHED FONT_CACHE_HASHED
PFONT_ENTRY_MEM
struct _FONT_ENTRY_MEM * PFONT_ENTRY_MEM
PFONT_ENTRY_COLL_MEM
struct _FONT_ENTRY_COLL_MEM * PFONT_ENTRY_COLL_MEM
FONT_CACHE_ENTRY
struct _FONT_CACHE_ENTRY FONT_CACHE_ENTRY
PFONT_ENTRY
struct _FONT_ENTRY * PFONT_ENTRY
PFONT_CACHE_HASHED
struct _FONT_CACHE_HASHED * PFONT_CACHE_HASHED
FONT_ENTRY
struct _FONT_ENTRY FONT_ENTRY
PGDI_LOAD_FONT
struct GDI_LOAD_FONT * PGDI_LOAD_FONT
FONTSUBST_FROM_AND_TO
#define FONTSUBST_FROM_AND_TO
Definition:
font.h:71
PFONT_CACHE_ENTRY
struct _FONT_CACHE_ENTRY * PFONT_CACHE_ENTRY
FONT_ENTRY_COLL_MEM
struct _FONT_ENTRY_COLL_MEM FONT_ENTRY_COLL_MEM
PFONT_ASPECT
struct _FONT_ASPECT * PFONT_ASPECT
FONT_ENTRY_MEM
struct _FONT_ENTRY_MEM FONT_ENTRY_MEM
FONT_ASPECT
struct _FONT_ASPECT FONT_ASPECT
PFONTSUBST_ENTRY
struct FONTSUBST_ENTRY * PFONTSUBST_ENTRY
void
Definition:
nsiface.idl:2307
C_ASSERT
#define C_ASSERT(e)
Definition:
intsafe.h:73
_ANONYMOUS_UNION
#define _ANONYMOUS_UNION
Definition:
ntbasedef.h:30
LONG
long LONG
Definition:
pedump.c:60
FONTSUBST_ENTRY
Definition:
font.h:77
FONTSUBST_ENTRY::FontNames
UNICODE_STRING FontNames[FONTSUBST_FROM_AND_TO]
Definition:
font.h:79
FONTSUBST_ENTRY::CharSets
BYTE CharSets[FONTSUBST_FROM_AND_TO]
Definition:
font.h:80
FONTSUBST_ENTRY::ListEntry
LIST_ENTRY ListEntry
Definition:
font.h:78
FT_BitmapGlyphRec_
Definition:
ftglyph.h:161
FT_FaceRec_
Definition:
freetype.h:1069
FT_Matrix_
Definition:
fttypes.h:386
GDI_LOAD_FONT
Definition:
font.h:85
GDI_LOAD_FONT::pFileName
PUNICODE_STRING pFileName
Definition:
font.h:86
GDI_LOAD_FONT::PrivateEntry
PFONT_ENTRY_MEM PrivateEntry
Definition:
font.h:92
GDI_LOAD_FONT::Memory
PSHARED_MEM Memory
Definition:
font.h:87
GDI_LOAD_FONT::CharSet
BYTE CharSet
Definition:
font.h:91
GDI_LOAD_FONT::RegValueName
UNICODE_STRING RegValueName
Definition:
font.h:89
GDI_LOAD_FONT::IsTrueType
BOOL IsTrueType
Definition:
font.h:90
GDI_LOAD_FONT::Characteristics
DWORD Characteristics
Definition:
font.h:88
_FONTGDI
Definition:
engobjects.h:139
_FONT_ASPECT
Definition:
font.h:29
_FONT_ASPECT::EmuBoldItalic
WORD EmuBoldItalic
Definition:
font.h:31
_FONT_ASPECT::DUMMYUNIONNAME
_ANONYMOUS_UNION union _FONT_ASPECT::@5092 DUMMYUNIONNAME
_FONT_ASPECT::Italic
BYTE Italic
Definition:
font.h:34
_FONT_ASPECT::RenderMode
WORD RenderMode
Definition:
font.h:37
_FONT_ASPECT::Bold
BYTE Bold
Definition:
font.h:33
_FONT_ASPECT::Emu
struct _FONT_ASPECT::@5092::@5093 Emu
_FONT_CACHE_ENTRY
Definition:
font.h:56
_FONT_CACHE_ENTRY::BitmapGlyph
FT_BitmapGlyph BitmapGlyph
Definition:
font.h:58
_FONT_CACHE_ENTRY::ListEntry
LIST_ENTRY ListEntry
Definition:
font.h:57
_FONT_CACHE_ENTRY::Hashed
FONT_CACHE_HASHED Hashed
Definition:
font.h:60
_FONT_CACHE_ENTRY::dwHash
DWORD dwHash
Definition:
font.h:59
_FONT_CACHE_HASHED
Definition:
font.h:41
_FONT_CACHE_HASHED::DUMMYUNIONNAME
_ANONYMOUS_UNION union _FONT_CACHE_HASHED::@5094 DUMMYUNIONNAME
_FONT_CACHE_HASHED::lfHeight
LONG lfHeight
Definition:
font.h:44
_FONT_CACHE_HASHED::lfWidth
LONG lfWidth
Definition:
font.h:45
_FONT_CACHE_HASHED::GlyphIndex
INT GlyphIndex
Definition:
font.h:42
_FONT_CACHE_HASHED::Face
FT_Face Face
Definition:
font.h:43
_FONT_CACHE_HASHED::matTransform
FT_Matrix matTransform
Definition:
font.h:50
_FONT_CACHE_HASHED::Aspect
FONT_ASPECT Aspect
Definition:
font.h:48
_FONT_CACHE_HASHED::AspectValue
DWORD AspectValue
Definition:
font.h:47
_FONT_ENTRY_COLL_MEM
Definition:
font.h:20
_FONT_ENTRY_COLL_MEM::Entry
FONT_ENTRY_MEM * Entry
Definition:
font.h:23
_FONT_ENTRY_COLL_MEM::ListEntry
LIST_ENTRY ListEntry
Definition:
font.h:21
_FONT_ENTRY_COLL_MEM::Handle
HANDLE Handle
Definition:
font.h:22
_FONT_ENTRY_MEM
Definition:
font.h:14
_FONT_ENTRY_MEM::ListEntry
LIST_ENTRY ListEntry
Definition:
font.h:15
_FONT_ENTRY_MEM::Entry
FONT_ENTRY * Entry
Definition:
font.h:16
_FONT_ENTRY
Definition:
font.h:5
_FONT_ENTRY::Font
FONTGDI * Font
Definition:
font.h:7
_FONT_ENTRY::StyleName
UNICODE_STRING StyleName
Definition:
font.h:9
_FONT_ENTRY::NotEnum
BYTE NotEnum
Definition:
font.h:10
_FONT_ENTRY::FaceName
UNICODE_STRING FaceName
Definition:
font.h:8
_FONT_ENTRY::ListEntry
LIST_ENTRY ListEntry
Definition:
font.h:6
_LIST_ENTRY
Definition:
typedefs.h:120
_SHARED_MEM
Definition:
engobjects.h:118
_UNICODE_STRING
Definition:
env_spec_w32.h:368
FIELD_OFFSET
#define FIELD_OFFSET(t, f)
Definition:
typedefs.h:255
INT
int32_t INT
Definition:
typedefs.h:58
BYTE
unsigned char BYTE
Definition:
xxhash.c:193
win32ss
gdi
ntgdi
font.h
Generated on Wed Oct 9 2024 06:20:52 for ReactOS by
1.9.6