FSlateFontCache::GetUnderlineMetrics

Get the underline metrics for the specified font.

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

void GetUnderlineMetrics
(
    const FSlateFontInfo & InFontInfo,
    const float FontScale,
    int16 & OutUnderlinePos,
    int16 & OutUnderlineThickness
) const

Remarks

Get the underline metrics for the specified font.

Parameters

Parameter

Description

InFontInfo

A descriptor of the font to get character size for

FontScale

The scale to apply to the font

OutUnderlinePos

The offset from the baseline to the center of the underline bar

OutUnderlineThickness

The thickness of the underline bar

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