FSlateFontCache::ShapeUnidirectionalText

Performs text shaping on the given range of the string using the given font info.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h

Include

#include "Fonts/FontCache.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp

Syntax

FShapedGlyphSequenceRef ShapeUnidirectionalText
(
    const FString & InText,
    const FSlateFontInfo & InFontInfo,
    const float InFontScale,
    const TextBiDi::ETextDirection InTextDirection,
    const ETextShapingMethod InTextShapingMethod
) const

Remarks

Performs text shaping on the given range of the string using the given font info. Returns you the shaped text sequence to use for text rendering via FSlateDrawElement::MakeShapedText. When using the version which takes a start point and length, the text outside of the given range won't be shaped, but will provide context information to allow the shaping to function correctly. ShapeUnidirectionalText is used when you have text that all reads in the same direction (either LTR or RTL).

Parameters

Parameter

Description

InText

The string containing the sub-string to shape

InTextStart

The start position of the text to shape

InTextLen

The length of the text to shape

InFontInfo

Information about the font that the string is drawn with

InFontScale

The scale to apply to the font

InTextDirection

The reading direction of the text to shape (valid values are LeftToRight or RightToLeft)

InTextShapingMethod

The text shaping method to use

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