FSlateFontCache::GetStrikeMetrics

Get the strike metrics for the specified font.

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

void GetStrikeMetrics
(
    const FSlateFontInfo & InFontInfo,
    const float FontScale,
    int16 & OutStrikeLinePos,
    int16 & OutStrikeLineThickness
) const

Remarks

Get the strike 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

OutStrikeLinePos

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

OutStrikeLineThickness

The thickness of the strike bar