FSlateFontServices

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

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/SlateRenderer.h

Include

#include "Rendering/SlateRenderer.h"

Syntax

class FSlateFontServices

Remarks

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

Constructors

Name Description

Public function

FSlateFontServices

(
    TSharedRef< class FSlateFontCache >...,
    TSharedRef< class FSlateFontCache >...
)

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

Destructors

Name Description

Public function

~FSlateFontServices()

Destruct the font services

Functions

Name Description

Public function

void

 

FlushFontCache

(
    const FString& FlushReason
)

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

Public function

void

 

FlushGameThreadFontCache

(
    const FString& FlushReason
)

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

Public function

void

 

FlushRenderThreadFontCache

(
    const FString& FlushReason
)

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

Public function Const

TSharedRef< ...

 

GetFontCache()

Get the font cache to use for the current thread

Public function Const

TSharedRef< ...

 

GetFontMeasureService()

Get access to the font measure service for the current thread

Public function Const

TSharedRef< ...

 

GetGameThreadFontCache()

Get the font cache to use for the game thread

Public function Const

TSharedRef< ...

 

GetGameThreadFontMeasureService()

Get access to the font measure service for the current thread

Public function Const

TSharedRef< ...

 

GetRenderThreadFontCache()

Get the font cache to use for the render thread

Public function Const

TSharedRef< ...

 

GetRenderThreadFontMeasureService()

Get access to the font measure service for the current thread

Public function

FOnReleaseFo...

 

OnReleaseResources()

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

Public function

void

 

ReleaseResources()

Release any rendering resources owned by this font service

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss