FSlateFontCache::GetKerning

Calculates the kerning amount for a pair of characters

Choose your operating system:

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

int8 GetKerning
(
    const FFontData & InFontData,
    const int32 InSize,
    TCHAR First,
    TCHAR Second,
    float Scale
) const

Remarks

Calculates the kerning amount for a pair of characters

Returns

The kerning amount, 0 if no kerning

Parameters

Parameter

Description

InFontData

The font that used to draw the string with the first and second characters

InSize

The size of the font to draw

First

The first character in the pair

Second

The second character in the pair