UCanvas::K2_TextSize

Returns the clipped text size in screen space coordinates.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

FVector2D K2_TextSize
(
    UFont * RenderFont,
    const FString & RenderText,
    FVector2D Scale
)

Remarks

Returns the clipped text size in screen space coordinates.

Returns

Returns the screen space size of the text.

Parameters

Parameter

Description

RenderFont

Font to use when determining the size of the text. If this is null, then a default engine font is used.

RenderText

Text to determine the size of.

Scale

Scale of the font to use when determining the size of the text.

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