UFont::GetCharSize

Calculate the width and height of a single character using this font's default size and scale.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Font.h

Include

#include "Engine/Font.h"

Source

/Engine/Source/Runtime/Engine/Private/Font.cpp

Syntax

void GetCharSize
(
    TCHAR InCh,
    float & Width,
    float & Height
) const

Remarks

Calculate the width and height of a single character using this font's default size and scale.

Parameters

Parameter

Description

InCh

the character to size

Width

the width of the character (in pixels)

Height

the height of the character (in pixels)

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