Navigation
API > API/Runtime > API/Runtime/Engine
A shim around FSlateFontServices that provides access from the render thread (where FSlateApplication::Get() would assert)
| Name | FEngineFontServices |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/EngineFontServices.h |
| Include Path | #include "EngineFontServices.h" |
Syntax
class FEngineFontServices
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEngineFontServices() |
Constructor - must be called from the game thread | EngineFontServices.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FEngineFontServices() |
Destructor - must be called from the game thread | EngineFontServices.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Instance | FEngineFontServices * | Singular instance of this class | EngineFontServices.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SlateFontServices | TSharedPtr< class FSlateFontServices > | Slate font services instance being wrapped | EngineFontServices.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< FSlateFontCache > GetFontCache() |
Get the font cache to use for the current thread | EngineFontServices.h | |
TSharedPtr< FSlateFontMeasure > GetFontMeasure() |
Get the font measure to use for the current thread | EngineFontServices.h | |
FOnReleaseFontResources & OnReleaseResources() |
Delegate called after releasing the rendering resources used by this font service | EngineFontServices.h | |
void UpdateCache() |
Update the cache for the current thread | EngineFontServices.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Create() |
Create the singular instance of this class - must be called from the game thread | EngineFontServices.h | |
static void Destroy() |
Destroy the singular instance of this class - must be called from the game thread | EngineFontServices.h | |
static FEngineFontServices & Get() |
Get the singular instance of this class | EngineFontServices.h | |
static bool IsInitialized() |
Check to see if the singular instance of this class is currently initialized and ready | EngineFontServices.h |