mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
2b526bceac
CORE-16269 - Add IntGdiAddFontResourceEx function that is extended from IntGdiAddFontResource, in order to add dwFlags parameter. - Add IntLoadFontsInRegistry function that will load the fonts from registry info. - If loading from registry failed, IntLoadSystemFonts will be called. - Use IntLoadFontsInRegistry rather than IntLoadSystemFonts in the OS startup. - Add NameFromCharSet function. - Append " (CharSetName)" to registry value name if not TrueType.
68 lines
1.5 KiB
C
68 lines
1.5 KiB
C
#pragma once
|
|
|
|
|
|
typedef struct _FONT_ENTRY
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
FONTGDI *Font;
|
|
UNICODE_STRING FaceName;
|
|
UNICODE_STRING StyleName;
|
|
BYTE NotEnum;
|
|
} FONT_ENTRY, *PFONT_ENTRY;
|
|
|
|
typedef struct _FONT_ENTRY_MEM
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
FONT_ENTRY *Entry;
|
|
} FONT_ENTRY_MEM, *PFONT_ENTRY_MEM;
|
|
|
|
typedef struct _FONT_ENTRY_COLL_MEM
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
HANDLE Handle;
|
|
FONT_ENTRY_MEM *Entry;
|
|
} FONT_ENTRY_COLL_MEM, *PFONT_ENTRY_COLL_MEM;
|
|
|
|
typedef struct _FONT_CACHE_ENTRY
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
int GlyphIndex;
|
|
FT_Face Face;
|
|
FT_BitmapGlyph BitmapGlyph;
|
|
int Height;
|
|
int Width;
|
|
int Escapement;
|
|
FT_Render_Mode RenderMode;
|
|
MATRIX mxWorldToDevice;
|
|
} FONT_CACHE_ENTRY, *PFONT_CACHE_ENTRY;
|
|
|
|
|
|
/*
|
|
* FONTSUBST_... --- constants for font substitutes
|
|
*/
|
|
#define FONTSUBST_FROM 0
|
|
#define FONTSUBST_TO 1
|
|
#define FONTSUBST_FROM_AND_TO 2
|
|
|
|
/*
|
|
* FONTSUBST_ENTRY --- font substitute entry
|
|
*/
|
|
typedef struct FONTSUBST_ENTRY
|
|
{
|
|
LIST_ENTRY ListEntry;
|
|
UNICODE_STRING FontNames[FONTSUBST_FROM_AND_TO];
|
|
BYTE CharSets[FONTSUBST_FROM_AND_TO];
|
|
} FONTSUBST_ENTRY, *PFONTSUBST_ENTRY;
|
|
|
|
|
|
typedef struct GDI_LOAD_FONT
|
|
{
|
|
PUNICODE_STRING pFileName;
|
|
PSHARED_MEM Memory;
|
|
DWORD Characteristics;
|
|
UNICODE_STRING RegValueName;
|
|
BOOL IsTrueType;
|
|
BYTE CharSet;
|
|
PFONT_ENTRY_MEM PrivateEntry;
|
|
} GDI_LOAD_FONT, *PGDI_LOAD_FONT;
|
|
|