Navigation
API > API/Runtime > API/Runtime/SlateCore
Provides access to the game and render thread font caches that Slate should use
| Name | FSlateFontServices |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h |
| Include Path | #include "Rendering/SlateRenderer.h" |
Syntax
class FSlateFontServices
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateFontServices
(
TSharedRef< class FSlateFontCache > InGameThreadFontCache, |
Construct the font services from the font caches (we'll create corresponding measure services ourselves) These pointers may be the same if your renderer doesn't need a separate render thread font cache | Rendering/SlateRenderer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSlateFontServices() |
Destruct the font services | Rendering/SlateRenderer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GameThreadFontCache | TSharedRef< class FSlateFontCache > | Rendering/SlateRenderer.h | ||
| GameThreadFontMeasure | TSharedRef< class FSlateFontMeasure > | Rendering/SlateRenderer.h | ||
| OnReleaseResourcesDelegate | FOnReleaseFontResources | Rendering/SlateRenderer.h | ||
| RenderThreadFontCache | TSharedRef< class FSlateFontCache > | Rendering/SlateRenderer.h | ||
| RenderThreadFontMeasure | TSharedRef< class FSlateFontMeasure > | Rendering/SlateRenderer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void FlushFontCache
(
const FString& FlushReason |
Flushes all cached data from the font cache for the current thread | Rendering/SlateRenderer.h | |
void FlushGameThreadFontCache
(
const FString& FlushReason |
Flushes all cached data from the font cache for the game thread | Rendering/SlateRenderer.h | |
void FlushRenderThreadFontCache
(
const FString& FlushReason |
Flushes all cached data from the font cache for the render thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontCache > GetFontCache() |
Get the font cache to use for the current thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontMeasure > GetFontMeasureService() |
Get access to the font measure service for the current thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontCache > GetGameThreadFontCache() |
Get the font cache to use for the game thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontMeasure > GetGameThreadFontMeasureService() |
Get access to the font measure service for the current thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontCache > GetRenderThreadFontCache() |
Get the font cache to use for the render thread | Rendering/SlateRenderer.h | |
TSharedRef< class FSlateFontMeasure > GetRenderThreadFontMeasureService() |
Get access to the font measure service for the current thread | Rendering/SlateRenderer.h | |
FOnReleaseFontResources & OnReleaseResources() |
Delegate called after releasing the rendering resources used by this font service | Rendering/SlateRenderer.h | |
void ReleaseResources() |
Release any rendering resources owned by this font service | Rendering/SlateRenderer.h |