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

#include <SlateTextShaper.h>

Public Member Functions

 FSlateTextShaper (FFreeTypeCacheDirectory *InFTCacheDirectory, FCompositeFontCache *InCompositeFontCache, FSlateFontRenderer *InFontRenderer, FSlateFontCache *InFontCache)
 
FShapedGlyphSequenceRef ShapeBidirectionalText (const TCHAR *InText, const int32 InTextStart, const int32 InTextLen, const FSlateFontInfo &InFontInfo, const float InFontScale, const TextBiDi::ETextDirection InBaseDirection, const ETextShapingMethod TextShapingMethod)
 
FShapedGlyphSequenceRef ShapeUnidirectionalText (const TCHAR *InText, const int32 InTextStart, const int32 InTextLen, const FSlateFontInfo &InFontInfo, const float InFontScale, const TextBiDi::ETextDirection InTextDirection, const ETextShapingMethod TextShapingMethod)
 
void FlushCache ()
 

Detailed Description

Bridging point between HarfBuzz and the Slate font system. This class, via the instances you pass to its constructor, knows how to correctly shape a Slate font.

Constructor & Destructor Documentation

◆ FSlateTextShaper()

FSlateTextShaper::FSlateTextShaper ( FFreeTypeCacheDirectory InFTCacheDirectory,
FCompositeFontCache InCompositeFontCache,
FSlateFontRenderer InFontRenderer,
FSlateFontCache InFontCache 
)

Member Function Documentation

◆ FlushCache()

void FSlateTextShaper::FlushCache ( )

Get rid of the harfbuzz font cache, wich store the harfbuzz fonts.

◆ ShapeBidirectionalText()

FShapedGlyphSequenceRef FSlateTextShaper::ShapeBidirectionalText ( const TCHAR InText,
const int32  InTextStart,
const int32  InTextLen,
const FSlateFontInfo InFontInfo,
const float  InFontScale,
const TextBiDi::ETextDirection  InBaseDirection,
const ETextShapingMethod  TextShapingMethod 
)

◆ ShapeUnidirectionalText()

FShapedGlyphSequenceRef FSlateTextShaper::ShapeUnidirectionalText ( const TCHAR InText,
const int32  InTextStart,
const int32  InTextLen,
const FSlateFontInfo InFontInfo,
const float  InFontScale,
const TextBiDi::ETextDirection  InTextDirection,
const ETextShapingMethod  TextShapingMethod 
)

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