FSlateFontServices

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

Windows
MacOS
Linux

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

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

void

 

ReleaseResources()

Release any rendering resources owned by this font service

References

Module

SlateCore

Header

Runtime/SlateCore/Public/Rendering/SlateRenderer.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback