Navigation
API > API/Runtime > API/Runtime/SlateCore
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
| Name | FCharacterList |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include Path | #include "Fonts/FontCache.h" |
Syntax
class FCharacterList
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCharacterList
(
const FSlateFontKey& InFontKey, |
Fonts/FontCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Baseline | int16 | The offset from the bottom of the max character height to the baseline. | Fonts/FontCache.h | |
| CompositeFontHistoryRevision | int32 | The history revision of the cached composite font | Fonts/FontCache.h | |
| FontCache | FSlateFontCache & | Reference to the font cache for accessing new unseen characters | Fonts/FontCache.h | |
| FontKey | FSlateFontKey | Font for this character list | Fonts/FontCache.h | |
| MappedEntries | TMap< TCHAR, FCharacterEntry > | Entries for larger character sets to conserve memory | Fonts/FontCache.h | |
| MaxHeight | uint16 | The global max height for any character in this font | Fonts/FontCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int16 GetBaseline() |
Returns the baseline for the font used by this character | Fonts/FontCache.h | |
const FCharacterEntry & GetCharacter
(
TCHAR Character, |
Gets data about how to render and measure a character. | Fonts/FontCache.h | |
int8 GetKerning
(
const FCharacterEntry& FirstCharacterEntry, |
Gets a kerning value for a pair of character entries | Fonts/FontCache.h | |
int8 GetKerning
(
TCHAR FirstChar, |
Gets a kerning value for a pair of characters | Fonts/FontCache.h | |
uint16 GetMaxHeight() |
Fonts/FontCache.h | ||
bool IsStale() |
Check to see if our cached data is potentially stale for our font | Fonts/FontCache.h |