ReactOS 0.4.15-dev-7788-g1ad9096
|
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 40 of file freetype.c.
#define ASSERT_FREETYPE_LOCK_HELD | ( | ) | ASSERT(g_FreeTypeLock->Owner == KeGetCurrentThread()) |
Definition at line 85 of file freetype.c.
#define ASSERT_FREETYPE_LOCK_NOT_HELD | ( | ) | ASSERT(g_FreeTypeLock->Owner != KeGetCurrentThread()) |
Definition at line 88 of file freetype.c.
#define ASSERT_GLOBALFONTS_LOCK_HELD | ( | ) | ASSERT(g_FontListLock->Owner == KeGetCurrentThread()) |
Definition at line 76 of file freetype.c.
#define CP_MACCP 2 |
Definition at line 167 of file freetype.c.
#define CP_OEMCP 1 |
Definition at line 166 of file freetype.c.
#define CP_SYMBOL 42 |
Definition at line 122 of file freetype.c.
#define EMUBOLD_NEEDED | ( | original, | |
request | |||
) | (((request) != FW_DONTCARE) && ((request) - (original) >= FW_BOLD - FW_MEDIUM)) |
Definition at line 44 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 53 of file freetype.c.
#define IntLockFreeType | ( | ) | ExEnterCriticalRegionAndAcquireFastMutexUnsafe(g_FreeTypeLock) |
Definition at line 79 of file freetype.c.
#define IntLockGlobalFonts | ( | ) | ExEnterCriticalRegionAndAcquireFastMutexUnsafe(g_FontListLock) |
Definition at line 70 of file freetype.c.
#define IntUnLockFreeType | ( | ) | ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(g_FreeTypeLock) |
Definition at line 82 of file freetype.c.
#define IntUnLockGlobalFonts | ( | ) | ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(g_FontListLock) |
Definition at line 73 of file freetype.c.
#define MAX_FONT_CACHE 256 |
Definition at line 91 of file freetype.c.
#define MAXTCIINDEX 32 |
Definition at line 123 of file freetype.c.
#define NDEBUG |
Definition at line 35 of file freetype.c.
#define STACK_TEXT_BUFFER_SIZE 100 |
Definition at line 6575 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 2545 of file freetype.c.
Referenced by GetFontPenalty().
|
static |
Definition at line 362 of file freetype.c.
Referenced by IntGdiCleanupMemEntry(), and IntGdiCleanupPrivateFontsForProcess().
|
static |
Definition at line 342 of file freetype.c.
Referenced by CleanupFontEntry().
|
static |
Definition at line 830 of file freetype.c.
Referenced by IntGdiAddFontResourceEx(), and IntGetFontLocalizedName().
|
static |
Definition at line 5346 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 2080 of file freetype.c.
Referenced by FillTM(), and get_glyph_index().
|
static |
Definition at line 2096 of file freetype.c.
Referenced by ftGdiGetTextMetricsW(), and IntGetOutlineTextMetrics().
|
static |
Definition at line 5040 of file freetype.c.
Referenced by TextIntRealizeFont().
|
static |
Definition at line 2763 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 4652 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 3723 of file freetype.c.
Referenced by NtGdiGetGlyphOutline(), and PATH_ExtTextOut().
DWORD FASTCALL ftGdiGetKerningPairs | ( | PFONTGDI | Font, |
DWORD | cPairs, | ||
LPKERNINGPAIR | pKerningPair | ||
) |
Definition at line 5667 of file freetype.c.
Referenced by GreGetKerningPairs(), and NtGdiGetKerningPairs().
BOOL FASTCALL ftGdiGetRasterizerCaps | ( | LPRASTERIZER_STATUS | lprs | ) |
Definition at line 3073 of file freetype.c.
Referenced by NtGdiGetRasterizerCaps().
INT FASTCALL ftGdiGetTextCharsetInfo | ( | PDC | Dc, |
LPFONTSIGNATURE | lpSig, | ||
DWORD | dwFlags | ||
) |
Definition at line 4368 of file freetype.c.
Referenced by DC_InitHack(), IntGetFontLanguageInfo(), NtGdiGetCharSet(), and NtGdiGetTextCharsetInfo().
BOOL FASTCALL ftGdiGetTextMetricsW | ( | HDC | hDC, |
PTMW_INTERNAL | ptmwi | ||
) |
Definition at line 4555 of file freetype.c.
Referenced by GreGetTextMetricsW(), IntGetCharDimensions(), and NtGdiGetTextMetricsW().
BOOL FASTCALL ftGdiRealizationInfo | ( | PFONTGDI | Font, |
PREALIZATION_INFO | Info | ||
) |
Definition at line 5648 of file freetype.c.
Referenced by NtGdiGetRealizationInfo().
Definition at line 4481 of file freetype.c.
Referenced by NtGdiGetFontUnicodeRanges().
Definition at line 368 of file freetype.c.
Referenced by get_bezier_glyph_outline(), and get_native_glyph_outline().
|
static |
Definition at line 3320 of file freetype.c.
Referenced by ftGdiGetGlyphOutline().
Definition at line 3688 of file freetype.c.
Referenced by get_glyph_index_flagged(), and NtGdiGetGlyphIndicesW().
|
inlinestatic |
Definition at line 3703 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), IntGetTextDisposition(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), and TextIntGetTextExtentPoint().
Definition at line 3674 of file freetype.c.
Referenced by get_glyph_index().
|
static |
Definition at line 3247 of file freetype.c.
Referenced by ftGdiGetGlyphOutline().
|
static |
Definition at line 2947 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), and IntGetFontFamilyInfo().
|
static |
Definition at line 3011 of file freetype.c.
Referenced by IntGetFontFamilyInfo().
|
static |
Definition at line 4694 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 6537 of file freetype.c.
Referenced by GreTextOutW(), IntPaintDesktop(), and NtGdiExtTextOutW().
Definition at line 657 of file freetype.c.
Referenced by InitializeGreCSRSS().
|
static |
Definition at line 5367 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 172 of file freetype.c.
Referenced by CreateStockFonts().
Definition at line 1963 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 5978 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 5942 of file freetype.c.
Referenced by IntExtTextOutW().
Definition at line 711 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 6025 of file freetype.c.
Referenced by GdiFlushUserBatch(), and GreExtTextOutW().
|
static |
Definition at line 3102 of file freetype.c.
Referenced by IntGetRealGlyph().
Definition at line 5108 of file freetype.c.
Referenced by TextIntRealizeFont().
|
static |
Definition at line 1789 of file freetype.c.
Referenced by NtGdiAddFontMemResourceEx().
INT FASTCALL IntGdiAddFontResource | ( | PUNICODE_STRING | FileName, |
DWORD | Characteristics | ||
) |
Definition at line 1621 of file freetype.c.
Referenced by NtGdiAddFontResourceW().
INT FASTCALL IntGdiAddFontResourceEx | ( | PUNICODE_STRING | FileName, |
DWORD | Characteristics, | ||
DWORD | dwFlags | ||
) |
Definition at line 1422 of file freetype.c.
Referenced by IntGdiAddFontResource(), IntLoadFontsInRegistry(), and IntLoadSystemFonts().
VOID FASTCALL IntGdiCleanupMemEntry | ( | PFONT_ENTRY_MEM | Head | ) |
Definition at line 1841 of file freetype.c.
Referenced by IntGdiCleanupPrivateFontsForProcess(), and IntGdiRemoveFontMemResource().
Definition at line 1911 of file freetype.c.
Referenced by GdiProcessDestroy().
BOOL FASTCALL IntGdiGetFontResourceInfo | ( | PUNICODE_STRING | FileName, |
PVOID | pBuffer, | ||
DWORD * | pdwBytes, | ||
DWORD | dwType | ||
) |
Definition at line 5380 of file freetype.c.
Referenced by NtGdiGetFontResourceInfoInternalW().
|
static |
Definition at line 1050 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), IntGdiAddFontResourceEx(), and IntGdiLoadFontsFromMemory().
Definition at line 1877 of file freetype.c.
Referenced by NtGdiRemoveFontMemResourceEx().
|
static |
Definition at line 3140 of file freetype.c.
Referenced by IntGetRealGlyph().
|
static |
Definition at line 3183 of file freetype.c.
Referenced by IntGetRealGlyph().
Definition at line 1020 of file freetype.c.
LONG FASTCALL IntGetFontFamilyInfo | ( | HDC | Dc, |
const LOGFONTW * | SafeLogFont, | ||
PFONTFAMILYINFO | SafeInfo, | ||
LONG | InfoCount | ||
) |
Definition at line 5718 of file freetype.c.
Referenced by NtGdiGetFontFamilyInfo().
|
static |
Definition at line 2603 of file freetype.c.
Referenced by IntInitFontNames(), MatchFontName(), and TextIntRealizeFont().
FT_Render_Mode FASTCALL IntGetFontRenderMode | ( | LOGFONTW * | logfont | ) |
Definition at line 1969 of file freetype.c.
Referenced by IntExtTextOutW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 5303 of file freetype.c.
Referenced by IntGdiGetFontResourceInfo().
Definition at line 3087 of file freetype.c.
Referenced by IntGetRealGlyph().
INT FASTCALL IntGetOutlineTextMetrics | ( | PFONTGDI | FontGDI, |
UINT | Size, | ||
OUTLINETEXTMETRICW * | Otm | ||
) |
Definition at line 2398 of file freetype.c.
Referenced by FindBestFontFromList(), FontFamilyFillInfo(), ftGdiGetGlyphOutline(), NtGdiGetGlyphIndicesW(), and NtGdiGetOutlineTextMetricsInternalW().
|
static |
Definition at line 4204 of file freetype.c.
Referenced by IntExtTextOutW(), IntGetTextDisposition(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 5874 of file freetype.c.
Referenced by IntExtTextOutW().
|
static |
Definition at line 2325 of file freetype.c.
Referenced by IntGetOutlineTextMetrics().
Definition at line 1957 of file freetype.c.
Referenced by IntExtTextOutW(), and TextIntGetTextExtentPoint().
Definition at line 1637 of file freetype.c.
Referenced by InitFontSupport().
BOOL FASTCALL IntLoadFontSubstList | ( | PLIST_ENTRY | pHead | ) |
Definition at line 510 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 892 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 724 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), and IntExtTextOutW().
Definition at line 703 of file freetype.c.
Referenced by TextIntGetTextExtentPoint().
Definition at line 3445 of file freetype.c.
Referenced by FindBestFontFromList(), ftGdiGetTextMetricsW(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), and TextIntUpdateSize().
|
static |
Definition at line 2361 of file freetype.c.
Referenced by IntGetOutlineTextMetrics().
|
static |
|
static |
Definition at line 2033 of file freetype.c.
Referenced by FontFamilyFillInfo(), and ftGdiGetTextCharsetInfo().
|
static |
Definition at line 815 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), SubstituteFontRecurse(), and TextIntRealizeFont().
|
static |
Definition at line 5143 of file freetype.c.
Referenced by MatchFontNames().
|
static |
Definition at line 5166 of file freetype.c.
Referenced by TextIntRealizeFont().
Definition at line 1388 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 6578 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 6703 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 6906 of file freetype.c.
LONG NTAPI NtGdiGetFontFamilyInfo | ( | HDC | Dc, |
const LOGFONTW * | UnsafeLogFont, | ||
PFONTFAMILYINFO | UnsafeInfo, | ||
LPLONG | UnsafeInfoCount | ||
) |
Definition at line 5757 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 7070 of file freetype.c.
Referenced by GetCharacterPlacementW(), and GetGlyphIndicesA().
Definition at line 1627 of file freetype.c.
Referenced by IntLoadFontsInRegistry().
|
static |
Definition at line 257 of file freetype.c.
Referenced by IntGetBitmapGlyphWithCache(), and RemoveCacheEntries().
Definition at line 269 of file freetype.c.
Referenced by SharedFace_Release().
|
static |
Definition at line 5853 of file freetype.c.
|
static |
Definition at line 249 of file freetype.c.
Referenced by IntGdiLoadFontsFromMemory().
|
static |
Definition at line 214 of file freetype.c.
Referenced by IntGdiLoadFontsFromMemory().
|
static |
Definition at line 318 of file freetype.c.
Referenced by CleanupFontEntryEx(), and IntGdiLoadFontsFromMemory().
|
static |
Definition at line 206 of file freetype.c.
Referenced by SharedFace_Create().
|
static |
Definition at line 311 of file freetype.c.
Referenced by SharedFace_Release().
|
static |
Definition at line 198 of file freetype.c.
Referenced by SharedFace_Create().
|
static |
Definition at line 233 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), and IntGdiAddFontResourceEx().
|
static |
Definition at line 290 of file freetype.c.
Referenced by IntGdiAddFontMemResource(), IntGdiAddFontResourceEx(), and SharedFace_Release().
|
static |
Definition at line 753 of file freetype.c.
Referenced by SubstituteFontRecurse().
Definition at line 853 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), and TextIntRealizeFont().
Definition at line 2589 of file freetype.c.
Referenced by IntGetFontLocalizedName().
NTSTATUS FASTCALL TextIntCreateFontIndirect | ( | CONST LPLOGFONTW | lf, |
HFONT * | NewFont | ||
) |
Definition at line 1991 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 4258 of file freetype.c.
Referenced by GreGetTextExtentExW(), GreGetTextExtentW(), IntGetCharDimensions(), and NtGdiGetTextExtentExW().
Definition at line 5193 of file freetype.c.
Referenced by DC_hSelectFont(), DC_InitHack(), FontGetObject(), and RealizeFontInit().
Definition at line 3585 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), NtGdiGetOutlineTextMetricsInternalW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 1860 of file freetype.c.
Referenced by IntGdiCleanupPrivateFontsForProcess(), and IntGdiRemoveFontMemResource().
|
static |
Definition at line 96 of file freetype.c.
Referenced by FontFamilyFillInfo().
|
static |
Definition at line 93 of file freetype.c.
Referenced by InitFontSupport(), IntFindGlyphCache(), IntGetBitmapGlyphWithCache(), and RemoveCacheEntries().
|
static |
Definition at line 94 of file freetype.c.
Referenced by InitFontSupport(), IntGetBitmapGlyphWithCache(), and RemoveCachedEntry().
|
static |
Definition at line 66 of file freetype.c.
Referenced by GetFontFamilyInfoForSubstitutes(), InitFontSupport(), IntGdiGetFontResourceInfo(), IntGdiLoadFontsFromMemory(), IntGetFontFamilyInfo(), and TextIntRealizeFont().
|
static |
Definition at line 67 of file freetype.c.
Referenced by InitFontSupport().
|
static |
Definition at line 58 of file freetype.c.
Referenced by IntGdiAddFontResourceEx(), and IntLoadFontsInRegistry().
|
static |
Definition at line 124 of file freetype.c.
Referenced by IntCharSetFromCodePage(), IntGdiLoadFontsFromMemory(), IntGetCharSet(), and IntTranslateCharsetInfo().
FT_Library g_FreeTypeLibrary |
Definition at line 55 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), InitFontSupport(), and IntGdiLoadFontsFromMemory().
|
static |
Definition at line 64 of file freetype.c.
Referenced by InitFontSupport().
Definition at line 68 of file freetype.c.
Referenced by IntEnableFontRendering(), and IntIsFontRenderingEnabled().
Definition at line 36 of file dclife.c.
Referenced by DC_vInitDc().
Definition at line 49 of file freetype.c.
Referenced by ftGdiGetGlyphOutline(), IntExtTextOutW(), and TextIntGetTextExtentPoint().
|
static |
Definition at line 50 of file freetype.c.
Referenced by IntEngFillBox(), IntEngFillPolygon(), and IntExtTextOutW().