Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include | #include "Fonts/FontCache.h" |
Syntax
class FCharacterList
Remarks
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
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCharacterList
(
const FSlateFontKey& InFontKey, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int16 | GetBaseline () |
Returns the baseline for the font used by this character | |
| const FCharacterEntry & | GetCharacter
(
TCHAR Character, |
Gets data about how to render and measure a character. | |
| int8 | GetKerning
(
const FCharacterEntry& FirstCharacterEntry, |
Gets a kerning value for a pair of character entries | |
| int8 | GetKerning
(
TCHAR FirstChar, |
Gets a kerning value for a pair of characters | |
| uint16 | GetMaxHeight () |
||
| bool | IsStale () |
Check to see if our cached data is potentially stale for our font |