FSlateFontMeasure::GetKerning

Returns the kerning value for the specified pair of characters.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Fonts/FontMeasure.h"

Source

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

Syntax

int8 GetKerning
(
    const FSlateFontInfo & InFontInfo,
    float FontScale,
    TCHAR PreviousCharacter,
    TCHAR CurrentCharacter
) const

Remarks

Returns the kerning value for the specified pair of characters.

Returns

the kerning value used between the two specified characters

Parameters

Parameter

Description

InFontInfo

A descriptor of the font to get kerning for

FontScale

The scale to apply to the font

PreviousCharacter

The character preceding the current character that you want to measure kerning for

CurrentCharacter

The current character to you to measure kerning for when precede by the specified PreviousCharacter

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