Choose your operating system:
Windows
macOS
Linux
| ISlateAtlasProvider | ||
| FSlateFlushableAtlasCache
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
Include |
#include "Fonts/FontCache.h" |
class FSlateFontCache :
public ISlateAtlasProvider,
public FSlateFlushableAtlasCache
Font caching implementation Caches characters into textures as needed
Name | Description | |
---|---|---|
|
FSlateFontCache ( |
Constructor |
Name | Description | |
---|---|---|
|
~FSlateFontCache() |
Name | Description | ||
---|---|---|---|
|
CanLoadCodepoint ( |
Whether or not the specified character, within the specified font, can be loaded with the specified maximum font fallback level |
|
|
ConditionalFlushCache() |
Flush the cache if needed |
|
|
FlushCompositeFont ( |
Flush the given composite font out of the cache |
|
|
FlushData() |
Clears just the cached font data, but leaves the atlases alone |
|
|
FlushObject ( |
Flush the given object out of the cache |
|
|
GetAvailableFontSubFaces ( |
Get the available sub-face data from the given font. |
|
|
GetAvailableFontSubFaces ( |
Get the available sub-face data from the given font. |
|
|
GetBaseline ( |
Returns the baseline for the specified font. |
|
|
FCharacterLi... |
GetCharacterList ( |
Gets information for how to draw all non-shaped characters in the specified string. |
|
const FFontD... |
GetDefaultFontData ( |
Returns the font to use from the default typeface |
|
const TSet< ... |
GetFontAttributes ( |
Returns the font attributes for the specified font. |
|
GetFontDataAssetResidentMemory ( |
Gets the allocated font face data for a font data asset |
|
|
const FFontD... |
GetFontDataForCodepoint ( |
Returns the font to use from the typeface associated with the given codepoint |
|
ISlateFontTe... |
GetFontTexture ( |
Get the texture resource for a font atlas at a given index |
|
GetKerning |
Calculates the kerning amount for a pair of characters |
|
|
GetMaxCharacterHeight ( |
Returns the height of the largest character in the font. |
|
|
FShapedGlyph... |
GetOverflowEllipsisText ( |
Gets the overflow glyph sequence for a given font. |
|
FShapedGlyph... |
GetShapedGlyphFontAtlasData ( |
Get the atlas information for the given shaped glyph. This information will be cached if required |
|
GetStrikeMetrics ( |
Get the strike metrics for the specified font. |
|
|
GetUnderlineMetrics ( |
Get the underline metrics for the specified font. |
|
|
HasKerning ( |
||
|
FOnReleaseFo... |
OnReleaseResources() |
Event called after releasing the rendering resources in ReleaseResources |
|
ReleaseResources() |
Releases rendering resources |
|
|
FShapedGlyph... |
ShapeBidirectionalText ( |
Performs text shaping on the given string using the given font info. |
|
FShapedGlyph... |
ShapeBidirectionalText ( |
Performs text shaping on the given string using the given font info. |
|
FShapedGlyph... |
ShapeUnidirectionalText ( |
Performs text shaping on the given range of the string using the given font info. |
|
FShapedGlyph... |
ShapeUnidirectionalText ( |
Performs text shaping on the given range of the string using the given font info. |
|
UpdateCache() |
Updates the texture used for rendering |
Name | Description | ||
---|---|---|---|
|
FSlateShader... |
GetAtlasPageResource ( |
Get the page resource for the given index (verify with GetNumAtlasPages) |
|
FAtlasSlotIn... |
GetAtlasSlotInfoAtPosition |
Finds a currently occupied slot at a position specified in atlas coordinates where 0,0 is the top left and the size of the atlas is bottom right |
|
GetNumAtlasPages() |
||
|
IsAtlasPageResourceAlphaOnly ( |
Does the page resources for the given index only contain alpha information? This affects how the atlas visualizer will sample them (verify with GetNumAtlasPages) |
Name | Description | ||
---|---|---|---|
|
RequestFlushCache ( |
Issues a request to clear all cached data from the cache |