![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FontCacheCompositeFont.h>
Public Member Functions | |
| FCompositeFontCache (const FFreeTypeLibrary *InFTLibrary) | |
| ~FCompositeFontCache () | |
| const FFontData & | GetDefaultFontData (const FSlateFontInfo &InFontInfo) |
| const FFontData & | GetFontDataForCodepoint (const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint, float &OutScalingFactor) |
| bool | HasLoadedFontForCodepoint (const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint) |
| TSharedPtr< FFreeTypeFace > | GetFontFace (const FFontData &InFontData) |
| const TSet< FName > & | GetFontAttributes (const FFontData &InFontData) |
| void | FlushCompositeFont (const FCompositeFont &InCompositeFont) |
| void | FlushCache () |
| void | Update () |
| SIZE_T | GetFontDataAssetResidentMemory (const UObject *FontDataAsset) const |
Friends | |
| class | FAsyncLoadFontFaceData |
High-level caching of composite fonts and FreeType font faces
| FCompositeFontCache::FCompositeFontCache | ( | const FFreeTypeLibrary * | InFTLibrary | ) |
Constructor
| FCompositeFontCache::~FCompositeFontCache | ( | ) |
Destructor
| void FCompositeFontCache::FlushCache | ( | ) |
Flush this cache
| void FCompositeFontCache::FlushCompositeFont | ( | const FCompositeFont & | InCompositeFont | ) |
Flush a single composite font entry from this cache
| const FFontData & FCompositeFontCache::GetDefaultFontData | ( | const FSlateFontInfo & | InFontInfo | ) |
Get the default font data to use for the given font info
Get the attributes associated with the given font data
Gets the allocated font data for a font data asset
| const FFontData & FCompositeFontCache::GetFontDataForCodepoint | ( | const FSlateFontInfo & | InFontInfo, |
| const UTF32CHAR | InCodepoint, | ||
| float & | OutScalingFactor | ||
| ) |
Get the font data to use for the given font info and codepoint
| TSharedPtr< FFreeTypeFace > FCompositeFontCache::GetFontFace | ( | const FFontData & | InFontData | ) |
Gets or loads a FreeType font face
| bool FCompositeFontCache::HasLoadedFontForCodepoint | ( | const FSlateFontInfo & | InFontInfo, |
| const UTF32CHAR | InCodepoint | ||
| ) |
Return true if the font data to use for the given font info and codepoint is already loaded
| void FCompositeFontCache::Update | ( | ) |
Give the composite font cache a chance to perform any tasks it has queued.
|
friend |