FShapedTextCache::FindOrAddShapedText

Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Text/ShapedTextCache.h

Include

#include "Framework/Text/ShapedTextCache.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Text/ShapedTextCache.cpp

Syntax

FShapedGlyphSequenceRef FindOrAddShapedText
(
    const FCachedShapedTextKey & InKey,
    const TCHAR * InText
)

Remarks

Try and find an existing shaped text instance, or add a new entry to the cache if one cannot be found

Returns

The shaped text instance

Parameters

Parameter

Description

InKey

The key identifying the shaped text instance to find or add

InText

The text to shape if we can't find the shaped text in the cache. InKey may specify a sub-section of the entire text

InTextDirection

The text direction of all of the text to be shaped. If present we do a unidirectional shape, otherwise we do a bidirectional shape

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