ReactOS 0.4.15-dev-8061-g57b775e
|
Go to the source code of this file.
Classes | |
struct | FONT_NAMES |
Typedefs | |
typedef struct FONT_NAMES | FONT_NAMES |
typedef struct FONT_NAMES * | LPFONT_NAMES |
Variables | |
const MATRIX | gmxWorldToDeviceDefault |
const MATRIX | gmxWorldToPageDefault |
static const FT_Matrix | identityMat = {(1 << 16), 0, 0, (1 << 16)} |
static POINTL | PointZero = { 0, 0 } |
FT_Library | g_FreeTypeLibrary |
static UNICODE_STRING | g_FontRegPath |
static PFAST_MUTEX | g_FreeTypeLock |
static LIST_ENTRY | g_FontListHead |
static PFAST_MUTEX | g_FontListLock |
static BOOL | g_RenderingEnabled = TRUE |
static LIST_ENTRY | g_FontCacheListHead |
static UINT | g_FontCacheNumEntries |
static PWCHAR | g_ElfScripts [32] |
static const CHARSETINFO | g_FontTci [MAXTCIINDEX] |
#define _TMPF_VARIABLE_PITCH TMPF_FIXED_PITCH |
Definition at line 55 of file freetype.c.
#define ASSERT_FREETYPE_LOCK_HELD | ( | ) | ASSERT(g_FreeTypeLock->Owner == KeGetCurrentThread()) |
Definition at line 100 of file freetype.c.
#define ASSERT_FREETYPE_LOCK_NOT_HELD | ( | ) | ASSERT(g_FreeTypeLock->Owner != KeGetCurrentThread()) |
Definition at line 103 of file freetype.c.
#define ASSERT_GLOBALFONTS_LOCK_HELD | ( | ) | ASSERT(g_FontListLock->Owner == KeGetCurrentThread()) |
Definition at line 91 of file freetype.c.
#define CP_MACCP 2 |
Definition at line 182 of file freetype.c.
#define CP_OEMCP 1 |
Definition at line 181 of file freetype.c.
#define CP_SYMBOL 42 |
Definition at line 137 of file freetype.c.
#define EMUBOLD_NEEDED | ( | original, | |
request | |||
) | (((request) != FW_DONTCARE) && ((request) - (original) >= FW_BOLD - FW_MEDIUM)) |
Definition at line 59 of file freetype.c.
#define FM_SEL_USE_TYPO_METRICS 0x80 |
#define FT_INTERNAL_INTERNAL_H <freetype/internal/internal.h> |
Includes
Definition at line 27 of file freetype.c.
#define gmxWorldToDeviceDefault gmxWorldToPageDefault |
Definition at line 68 of file freetype.c.
#define HIGH_SURROGATE_MAX 0xDBFFU |
Definition at line 40 of file freetype.c.
#define HIGH_SURROGATE_MIN 0xD800U |
Definition at line 39 of file freetype.c.
#define IntLockFreeType | ( | ) | ExEnterCriticalRegionAndAcquireFastMutexUnsafe(g_FreeTypeLock) |
Definition at line 94 of file freetype.c.
#define IntLockGlobalFonts | ( | ) | ExEnterCriticalRegionAndAcquireFastMutexUnsafe(g_FontListLock) |
Definition at line 85 of file freetype.c.
#define IntUnLockFreeType | ( | ) | ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(g_FreeTypeLock) |
Definition at line 97 of file freetype.c.
#define IntUnLockGlobalFonts | ( | ) | ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(g_FontListLock) |
Definition at line 88 of file freetype.c.
#define IS_HIGH_SURROGATE | ( | ch0 | ) | (HIGH_SURROGATE_MIN <= (ch0) && (ch0) <= HIGH_SURROGATE_MAX) |
Definition at line 44 of file freetype.c.
#define IS_LOW_SURROGATE | ( | ch1 | ) | (LOW_SURROGATE_MIN <= (ch1) && (ch1) <= LOW_SURROGATE_MAX) |
Definition at line 45 of file freetype.c.
#define LOW_SURROGATE_MAX 0xDFFFU |
Definition at line 42 of file freetype.c.
#define LOW_SURROGATE_MIN 0xDC00U |
Definition at line 41 of file freetype.c.
#define MAX_FONT_CACHE 256 |
Definition at line 106 of file freetype.c.
#define MAXTCIINDEX 32 |
Definition at line 138 of file freetype.c.
#define NDEBUG |
Definition at line 35 of file freetype.c.
#define STACK_TEXT_BUFFER_SIZE 512 |
Definition at line 6561 of file freetype.c.
#define VALIGN_MASK (TA_TOP | TA_BASELINE | TA_BOTTOM) |
typedef struct FONT_NAMES FONT_NAMES |
typedef struct FONT_NAMES * LPFONT_NAMES |
Definition at line 2560 of file freetype.c.
Referenced by GetFontPenalty().
|
static |
Definition at line 377 of file freetype.c.
Referenced by IntGdiCleanupMemEntry(), and IntGdiCleanupPrivateFontsForProcess().
|
static |
Definition at line 357 of file freetype.c.
Referenced by CleanupFontEntry().
|
static |
Definition at line 845 of file freetype.c.
Referenced by IntGdiAddFontResourceEx(), and IntGetFontLocalizedName().
|
static |
Definition at line 5309 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 2095 of file freetype.c.
Referenced by FillTM(), and get_glyph_index().
|
static |
Definition at line 2111 of file freetype.c.
Referenced by ftGdiGetTextMetricsW(), and IntGetOutlineTextMetrics().
|
static |
Definition at line 5003 of file freetype.c.
Referenced by TextIntRealizeFont().
|
static |
Definition at line 2778 of file freetype.c.
Referenced by GetFontFamilyInfoForList(), and IntGdiGetFontResourceInfo().
DWORD FASTCALL ftGdiGetFontData | ( | PFONTGDI | FontGdi, |
DWORD | Table, | ||
DWORD | Offset, | ||
PVOID | Buffer, | ||
DWORD | Size | ||
) |
Definition at line 4615 of file freetype.c.
Referenced by NtGdiGetFontData().
ULONG FASTCALL ftGdiGetGlyphOutline | ( | PDC | dc, |
WCHAR | wch, | ||
UINT | iFormat, | ||
LPGLYPHMETRICS | pgm, | ||
ULONG | cjBuf, | ||
PVOID | pvBuf, | ||
LPMAT2 | pmat2, | ||
BOOL | bIgnoreRotation | ||
) |
Definition at line 3694 of file freetype.c.
Referenced by NtGdiGetGlyphOutline(), and PATH_ExtTextOut().
DWORD FASTCALL ftGdiGetKerningPairs | ( | PFONTGDI | Font, |
DWORD | cPairs, | ||
LPKERNINGPAIR | pKerningPair | ||
) |
Definition at line 5630 of file freetype.c.
Referenced by GreGetKerningPairs(), and NtGdiGetKerningPairs().
BOOL FASTCALL ftGdiGetRasterizerCaps | ( | LPRASTERIZER_STATUS | lprs | ) |
Definition at line 3088 of file freetype.c.
Referenced by NtGdiGetRasterizerCaps().
INT FASTCALL ftGdiGetTextCharsetInfo | ( | PDC | Dc, |
LPFONTSIGNATURE | lpSig, | ||
DWORD | dwFlags | ||
) |
Definition at line 4331 of file freetype.c.
Referenced by DC_InitHack(), IntGetFontLanguageInfo(), NtGdiGetCharSet(), and NtGdiGetTextCharsetInfo().
BOOL FASTCALL ftGdiGetTextMetricsW | ( | HDC | hDC, |
PTMW_INTERNAL | ptmwi | ||
) |
Definition at line 4518 of file freetype.c.
Referenced by GreGetTextMetricsW(), IntGetCharDimensions(), and NtGdiGetTextMetricsW().
BOOL FASTCALL ftGdiRealizationInfo | ( | PFONTGDI | Font, |
PREALIZATION_INFO | Info | ||
) |
Definition at line 5611 of file freetype.c.
Referenced by NtGdiGetRealizationInfo().
Definition at line 4444 of file freetype.c.
Referenced by NtGdiGetFontUnicodeRanges().
Definition at line 383 of file freetype.c.
Referenced by get_bezier_glyph_outline(), and get_native_glyph_outline().
|
static |
Definition at line 3291 of file freetype.c.
Referenced by ftGdiGetGlyphOutline().
Definition at line 3659 of file freetype.c.
Referenced by get_glyph_index_flagged(), and NtGdiGetGlyphIndicesW().
|
inlinestatic |
Definition at line 3674 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), IntGetTextDisposition(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), and TextIntGetTextExtentPoint().
Definition at line 3645 of file freetype.c.
Referenced by get_glyph_index().
|
static |
Definition at line 3218 of file freetype.c.
Referenced by ftGdiGetGlyphOutline().
|
static |
Definition at line 2962 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), and IntGetFontFamilyInfo().
|
static |
Definition at line 3026 of file freetype.c.
Referenced by IntGetFontFamilyInfo().
|
static |
Definition at line 4657 of file freetype.c.
Referenced by FindBestFontFromList().
BOOL APIENTRY GreExtTextOutW | ( | IN HDC | hDC, |
IN INT | XStart, | ||
IN INT | YStart, | ||
IN UINT | fuOptions, | ||
IN OPTIONAL PRECTL | lprc, | ||
IN LPCWSTR | String, | ||
IN INT | Count, | ||
IN OPTIONAL LPINT | Dx, | ||
IN DWORD | dwCodePage | ||
) |
Definition at line 6523 of file freetype.c.
Referenced by GreTextOutW(), IntPaintDesktop(), and NtGdiExtTextOutW().
Definition at line 672 of file freetype.c.
Referenced by InitializeGreCSRSS().
|
static |
Definition at line 5330 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 187 of file freetype.c.
Referenced by CreateStockFonts().
Definition at line 1978 of file freetype.c.
VOID FASTCALL IntEngFillBox | ( | IN OUT PDC | dc, |
IN INT | X, | ||
IN INT | Y, | ||
IN INT | Width, | ||
IN INT | Height, | ||
IN BRUSHOBJ * | BrushObj | ||
) |
Definition at line 5956 of file freetype.c.
Referenced by IntExtTextOutW().
VOID APIENTRY IntEngFillPolygon | ( | IN OUT PDC | dc, |
IN POINTL * | pPoints, | ||
IN UINT | cPoints, | ||
IN BRUSHOBJ * | BrushObj | ||
) |
Definition at line 5920 of file freetype.c.
Referenced by IntExtTextOutW().
Definition at line 726 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), and IntExtTextOutW().
BOOL APIENTRY IntExtTextOutW | ( | IN PDC | dc, |
IN INT | XStart, | ||
IN INT | YStart, | ||
IN UINT | fuOptions, | ||
IN OPTIONAL PRECTL | lprc, | ||
IN LPCWSTR | String, | ||
IN INT | Count, | ||
IN OPTIONAL LPINT | Dx, | ||
IN DWORD | dwCodePage | ||
) |
Definition at line 6003 of file freetype.c.
Referenced by GdiFlushUserBatch(), and GreExtTextOutW().
|
static |
Definition at line 3117 of file freetype.c.
Referenced by IntGetRealGlyph().
Definition at line 5071 of file freetype.c.
Referenced by TextIntRealizeFont().
|
static |
Definition at line 1804 of file freetype.c.
Referenced by NtGdiAddFontMemResourceEx().
INT FASTCALL IntGdiAddFontResource | ( | PUNICODE_STRING | FileName, |
DWORD | Characteristics | ||
) |
Definition at line 1636 of file freetype.c.
Referenced by NtGdiAddFontResourceW().
INT FASTCALL IntGdiAddFontResourceEx | ( | PUNICODE_STRING | FileName, |
DWORD | Characteristics, | ||
DWORD | dwFlags | ||
) |
Definition at line 1437 of file freetype.c.
Referenced by IntGdiAddFontResource(), IntLoadFontsInRegistry(), and IntLoadSystemFonts().
VOID FASTCALL IntGdiCleanupMemEntry | ( | PFONT_ENTRY_MEM | Head | ) |
Definition at line 1856 of file freetype.c.
Referenced by IntGdiCleanupPrivateFontsForProcess(), and IntGdiRemoveFontMemResource().
Definition at line 1926 of file freetype.c.
Referenced by GdiProcessDestroy().
BOOL FASTCALL IntGdiGetFontResourceInfo | ( | PUNICODE_STRING | FileName, |
PVOID | pBuffer, | ||
DWORD * | pdwBytes, | ||
DWORD | dwType | ||
) |
Definition at line 5343 of file freetype.c.
Referenced by NtGdiGetFontResourceInfoInternalW().
|
static |
Definition at line 1065 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), IntGdiAddFontResourceEx(), and IntGdiLoadFontsFromMemory().
Definition at line 1892 of file freetype.c.
Referenced by NtGdiRemoveFontMemResourceEx().
|
static |
Definition at line 3154 of file freetype.c.
Referenced by IntGetRealGlyph().
Definition at line 1035 of file freetype.c.
LONG FASTCALL IntGetFontFamilyInfo | ( | HDC | Dc, |
const LOGFONTW * | SafeLogFont, | ||
PFONTFAMILYINFO | SafeInfo, | ||
LONG | InfoCount | ||
) |
Definition at line 5681 of file freetype.c.
Referenced by NtGdiGetFontFamilyInfo().
|
static |
Definition at line 2618 of file freetype.c.
Referenced by IntInitFontNames(), MatchFontName(), and TextIntRealizeFont().
FT_Render_Mode FASTCALL IntGetFontRenderMode | ( | LOGFONTW * | logfont | ) |
Definition at line 1984 of file freetype.c.
Referenced by IntExtTextOutW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 5266 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 3102 of file freetype.c.
Referenced by IntGetRealGlyph().
INT FASTCALL IntGetOutlineTextMetrics | ( | PFONTGDI | FontGDI, |
UINT | Size, | ||
OUTLINETEXTMETRICW * | Otm | ||
) |
Definition at line 2413 of file freetype.c.
Referenced by FindBestFontFromList(), FontFamilyFillInfo(), ftGdiGetGlyphOutline(), NtGdiGetGlyphIndicesW(), and NtGdiGetOutlineTextMetricsInternalW().
|
static |
Definition at line 4175 of file freetype.c.
Referenced by IntExtTextOutW(), IntGetTextDisposition(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 5837 of file freetype.c.
Referenced by IntExtTextOutW().
|
static |
Definition at line 2340 of file freetype.c.
Referenced by IntGetOutlineTextMetrics().
Definition at line 1972 of file freetype.c.
Referenced by IntExtTextOutW(), and TextIntGetTextExtentPoint().
Definition at line 1652 of file freetype.c.
Referenced by InitFontSupport().
BOOL FASTCALL IntLoadFontSubstList | ( | PLIST_ENTRY | pHead | ) |
Definition at line 525 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 907 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 739 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), and IntExtTextOutW().
Definition at line 718 of file freetype.c.
Referenced by TextIntGetTextExtentPoint().
Definition at line 3416 of file freetype.c.
Referenced by FindBestFontFromList(), ftGdiGetTextMetricsW(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), and TextIntUpdateSize().
|
static |
Definition at line 2376 of file freetype.c.
Referenced by IntGetOutlineTextMetrics().
|
static |
|
static |
Definition at line 2048 of file freetype.c.
Referenced by FontFamilyFillInfo(), and ftGdiGetTextCharsetInfo().
|
static |
Definition at line 830 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), SubstituteFontRecurse(), and TextIntRealizeFont().
|
static |
Definition at line 5106 of file freetype.c.
Referenced by MatchFontNames().
|
static |
Definition at line 5129 of file freetype.c.
Referenced by TextIntRealizeFont().
Definition at line 1403 of file freetype.c.
Referenced by IntGdiAddFontResourceEx().
BOOL APIENTRY NtGdiExtTextOutW | ( | IN HDC | hDC, |
IN INT | XStart, | ||
IN INT | YStart, | ||
IN UINT | fuOptions, | ||
IN OPTIONAL LPRECT | UnsafeRect, | ||
IN LPWSTR | UnsafeString, | ||
IN INT | Count, | ||
IN OPTIONAL LPINT | UnsafeDx, | ||
IN DWORD | dwCodePage | ||
) |
Definition at line 6565 of file freetype.c.
BOOL APIENTRY NtGdiGetCharABCWidthsW | ( | IN HDC | hDC, |
IN UINT | FirstChar, | ||
IN ULONG | Count, | ||
IN OPTIONAL PWCHAR | UnSafepwch, | ||
IN FLONG | fl, | ||
OUT PVOID | Buffer | ||
) |
Definition at line 6690 of file freetype.c.
BOOL APIENTRY NtGdiGetCharWidthW | ( | IN HDC | hDC, |
IN UINT | FirstChar, | ||
IN UINT | Count, | ||
IN OPTIONAL PWCHAR | UnSafepwc, | ||
IN FLONG | fl, | ||
OUT PVOID | Buffer | ||
) |
Definition at line 6893 of file freetype.c.
LONG NTAPI NtGdiGetFontFamilyInfo | ( | HDC | Dc, |
const LOGFONTW * | UnsafeLogFont, | ||
PFONTFAMILYINFO | UnsafeInfo, | ||
LPLONG | UnsafeInfoCount | ||
) |
Definition at line 5720 of file freetype.c.
Referenced by IntEnumFontFamilies().
__kernel_entry W32KAPI DWORD APIENTRY NtGdiGetGlyphIndicesW | ( | _In_ HDC | hdc, |
_In_reads_opt_(cwc) LPCWSTR | pwc, | ||
_In_ INT | cwc, | ||
_Out_writes_opt_(cwc) LPWORD | pgi, | ||
_In_ DWORD | iMode | ||
) |
Definition at line 7057 of file freetype.c.
Referenced by GetCharacterPlacementW(), and GetGlyphIndicesA().
Definition at line 1642 of file freetype.c.
Referenced by IntLoadFontsInRegistry().
|
static |
Definition at line 272 of file freetype.c.
Referenced by IntGetBitmapGlyphWithCache(), and RemoveCacheEntries().
Definition at line 284 of file freetype.c.
Referenced by SharedFace_Release().
|
static |
Definition at line 5816 of file freetype.c.
|
static |
Definition at line 264 of file freetype.c.
Referenced by IntGdiLoadFontsFromMemory().
|
static |
Definition at line 229 of file freetype.c.
Referenced by IntGdiLoadFontsFromMemory().
|
static |
Definition at line 333 of file freetype.c.
Referenced by CleanupFontEntryEx(), and IntGdiLoadFontsFromMemory().
|
static |
Definition at line 221 of file freetype.c.
Referenced by SharedFace_Create().
|
static |
Definition at line 326 of file freetype.c.
Referenced by SharedFace_Release().
|
static |
Definition at line 213 of file freetype.c.
Referenced by SharedFace_Create().
|
static |
Definition at line 248 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), and IntGdiAddFontResourceEx().
|
static |
Definition at line 305 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), IntGdiAddFontResourceEx(), and SharedFace_Release().
|
static |
Definition at line 768 of file freetype.c.
Referenced by SubstituteFontRecurse().
Definition at line 868 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), and TextIntRealizeFont().
Definition at line 2604 of file freetype.c.
Referenced by IntGetFontLocalizedName().
NTSTATUS FASTCALL TextIntCreateFontIndirect | ( | CONST LPLOGFONTW | lf, |
HFONT * | NewFont | ||
) |
Definition at line 2006 of file freetype.c.
Referenced by CreateStockFonts(), and UserDrawCaptionText().
BOOL FASTCALL TextIntGetTextExtentPoint | ( | PDC | dc, |
PTEXTOBJ | TextObj, | ||
LPCWSTR | String, | ||
INT | Count, | ||
ULONG | MaxExtent, | ||
LPINT | Fit, | ||
LPINT | Dx, | ||
LPSIZE | Size, | ||
FLONG | fl | ||
) |
Definition at line 4215 of file freetype.c.
Referenced by GreGetTextExtentExW(), GreGetTextExtentW(), IntGetCharDimensions(), and NtGdiGetTextExtentExW().
Definition at line 5156 of file freetype.c.
Referenced by DC_hSelectFont(), DC_InitHack(), FontGetObject(), and RealizeFontInit().
Definition at line 3556 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), NtGdiGetOutlineTextMetricsInternalW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 1875 of file freetype.c.
Referenced by IntGdiCleanupPrivateFontsForProcess(), and IntGdiRemoveFontMemResource().
Definition at line 48 of file freetype.c.
Referenced by IntExtTextOutW(), IntGetTextDisposition(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 111 of file freetype.c.
Referenced by FontFamilyFillInfo().
|
static |
Definition at line 108 of file freetype.c.
Referenced by InitFontSupport(), IntFindGlyphCache(), IntGetBitmapGlyphWithCache(), and RemoveCacheEntries().
|
static |
Definition at line 109 of file freetype.c.
Referenced by InitFontSupport(), IntGetBitmapGlyphWithCache(), and RemoveCachedEntry().
|
static |
Definition at line 81 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), InitFontSupport(), IntGdiGetFontResourceInfo(), IntGdiLoadFontsFromMemory(), IntGetFontFamilyInfo(), and TextIntRealizeFont().
|
static |
Definition at line 82 of file freetype.c.
Referenced by InitFontSupport().
|
static |
Definition at line 73 of file freetype.c.
Referenced by IntGdiAddFontResourceEx(), and IntLoadFontsInRegistry().
|
static |
Definition at line 139 of file freetype.c.
Referenced by IntCharSetFromCodePage(), IntGdiLoadFontsFromMemory(), IntGetCharSet(), and IntTranslateCharsetInfo().
FT_Library g_FreeTypeLibrary |
Definition at line 70 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), InitFontSupport(), and IntGdiLoadFontsFromMemory().
|
static |
Definition at line 79 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 83 of file freetype.c.
Referenced by IntEnableFontRendering(), and IntIsFontRenderingEnabled().
Definition at line 36 of file dclife.c.
Referenced by DC_vInitDc().
Definition at line 64 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 65 of file freetype.c.
Referenced by IntEngFillBox(), IntEngFillPolygon(), and IntExtTextOutW().