ShapedTextCacheUtil::GetShapedGlyphKerning

Get the kerning between two shaped glyphs

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

namespace ShapedTextCacheUtil
{
    int8 ShapedTextCacheUtil::GetShapedGlyphKerning
    (
        const FShapedTextCacheRef & InShapedTextCache,
        const FCachedShapedTextKey & InRunKey,
        const int32 InGlyphIndex,
        const TCHAR * InText
    )
}

Remarks

Get the kerning between two shaped glyphs

Returns

The kerning

Parameters

Parameter

Description

InShapedTextCache

The shaped text cache to use

InRunKey

The key identifying the cached shaped text for the run

InGlyphIndex

The index of the glyph to get the kerning for (will get it between the given glyph, and it's next glyph)

InText

The text to shape if we can't find the shaped text in the cache. (InGlyphIndex, InGlyphIndex+1) will be the range used

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