UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateFontServices Class Reference

#include <SlateRenderer.h>

Public Member Functions

SLATECORE_API FSlateFontServices (TSharedRef< class FSlateFontCache > InGameThreadFontCache, TSharedRef< class FSlateFontCache > InRenderThreadFontCache)
 
SLATECORE_API ~FSlateFontServices ()
 
SLATECORE_API TSharedRef< class FSlateFontCacheGetFontCache () const
 
TSharedRef< class FSlateFontCacheGetGameThreadFontCache () const
 
TSharedRef< class FSlateFontCacheGetRenderThreadFontCache () const
 
SLATECORE_API TSharedRef< class FSlateFontMeasureGetFontMeasureService () const
 
TSharedRef< class FSlateFontMeasureGetGameThreadFontMeasureService () const
 
TSharedRef< class FSlateFontMeasureGetRenderThreadFontMeasureService () const
 
SLATECORE_API void FlushFontCache (const FString &FlushReason)
 
SLATECORE_API void FlushGameThreadFontCache (const FString &FlushReason)
 
SLATECORE_API void FlushRenderThreadFontCache (const FString &FlushReason)
 
SLATECORE_API void ReleaseResources ()
 
SLATECORE_API FOnReleaseFontResourcesOnReleaseResources ()
 

Detailed Description

Provides access to the game and render thread font caches that Slate should use

Constructor & Destructor Documentation

◆ FSlateFontServices()

FSlateFontServices::FSlateFontServices ( TSharedRef< class FSlateFontCache InGameThreadFontCache,
TSharedRef< class FSlateFontCache InRenderThreadFontCache 
)

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

◆ ~FSlateFontServices()

FSlateFontServices::~FSlateFontServices ( )

Destruct the font services

Member Function Documentation

◆ FlushFontCache()

void FSlateFontServices::FlushFontCache ( const FString &  FlushReason)

Flushes all cached data from the font cache for the current thread

◆ FlushGameThreadFontCache()

void FSlateFontServices::FlushGameThreadFontCache ( const FString &  FlushReason)

Flushes all cached data from the font cache for the game thread

◆ FlushRenderThreadFontCache()

void FSlateFontServices::FlushRenderThreadFontCache ( const FString &  FlushReason)

Flushes all cached data from the font cache for the render thread

◆ GetFontCache()

TSharedRef< FSlateFontCache > FSlateFontServices::GetFontCache ( ) const

Get the font cache to use for the current thread

◆ GetFontMeasureService()

TSharedRef< class FSlateFontMeasure > FSlateFontServices::GetFontMeasureService ( ) const

Get access to the font measure service for the current thread

◆ GetGameThreadFontCache()

TSharedRef< class FSlateFontCache > FSlateFontServices::GetGameThreadFontCache ( ) const
inline

Get the font cache to use for the game thread

◆ GetGameThreadFontMeasureService()

TSharedRef< class FSlateFontMeasure > FSlateFontServices::GetGameThreadFontMeasureService ( ) const
inline

Get access to the font measure service for the current thread

◆ GetRenderThreadFontCache()

TSharedRef< class FSlateFontCache > FSlateFontServices::GetRenderThreadFontCache ( ) const
inline

Get the font cache to use for the render thread

◆ GetRenderThreadFontMeasureService()

TSharedRef< class FSlateFontMeasure > FSlateFontServices::GetRenderThreadFontMeasureService ( ) const
inline

Get access to the font measure service for the current thread

◆ OnReleaseResources()

FOnReleaseFontResources & FSlateFontServices::OnReleaseResources ( )

Delegate called after releasing the rendering resources used by this font service

◆ ReleaseResources()

void FSlateFontServices::ReleaseResources ( )

Release any rendering resources owned by this font service


The documentation for this class was generated from the following files: