FSlateFontMeasure::GetBaseline

Returns the baseline for the specified font.

Choose your operating system:

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

int16 GetBaseline
(
    const FSlateFontInfo & InFontInfo,
    float FontScale
) const

Remarks

Returns the baseline for the specified font.

Returns

The offset from the bottom of the max character height to the baseline.

Parameters

Parameter

Description

InFontInfo

A descriptor of the font to get character size for

FontScale

The scale to apply to the font