![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FontCache.h>
Public Member Functions | |
| SLATECORE_API | FCharacterList (const FSlateFontKey &InFontKey, FSlateFontCache &InFontCache) |
| SLATECORE_API const FCharacterEntry & | GetCharacter (TCHAR Character, const EFontFallback MaxFontFallback) |
| SLATECORE_API int8 | GetKerning (TCHAR FirstChar, TCHAR SecondChar, const EFontFallback MaxFontFallback) |
| SLATECORE_API int8 | GetKerning (const FCharacterEntry &FirstCharacterEntry, const FCharacterEntry &SecondCharacterEntry) |
| SLATECORE_API uint16 | GetMaxHeight () const |
| SLATECORE_API int16 | GetBaseline () const |
Manages a potentially large list of non-shaped characters Uses a directly indexed by TCHAR array until space runs out and then maps the rest to conserve memory Every character indexed by TCHAR could potentially cost a lot of memory of a lot of empty entries are created because characters being used are far apart
| FCharacterList::FCharacterList | ( | const FSlateFontKey & | InFontKey, |
| FSlateFontCache & | InFontCache | ||
| ) |
| int16 FCharacterList::GetBaseline | ( | ) | const |
Returns the baseline for the font used by this character
| const FCharacterEntry & FCharacterList::GetCharacter | ( | TCHAR | Character, |
| const EFontFallback | MaxFontFallback | ||
| ) |
Gets data about how to render and measure a character. Caching and atlasing it if needed. Subsequent calls may invalidate previous pointers.
| Character | The character to get |
| MaxFontFallback | The maximum fallback level that can be used when resolving glyphs |
| int8 FCharacterList::GetKerning | ( | const FCharacterEntry & | FirstCharacterEntry, |
| const FCharacterEntry & | SecondCharacterEntry | ||
| ) |
Gets a kerning value for a pair of character entries
| FirstCharacterEntry | The first character entry in the pair |
| SecondCharacterEntry | The second character entry in the pair |
| int8 FCharacterList::GetKerning | ( | TCHAR | FirstChar, |
| TCHAR | SecondChar, | ||
| const EFontFallback | MaxFontFallback | ||
| ) |
Gets a kerning value for a pair of characters
| FirstChar | The first character in the pair |
| SecondChar | The second character in the pair |
| MaxFontFallback | The maximum fallback level that can be used when resolving glyphs |
| uint16 FCharacterList::GetMaxHeight | ( | ) | const |