UCanvas::CanvasStringSize

Calculates the size of the specified string.

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

static void CanvasStringSize
(
    FTextSizingParameters & Parameters,
    const TCHAR * pText
)

Remarks

Calculates the size of the specified string.

Parameters

Parameter

Description

Parameters

Used for various purposes DrawXL: [out] will be set to the width of the string DrawYL: [out] will be set to the height of the string DrawFont: [in] specifies the font to use for retrieving the size of the characters in the string Scale: [in] specifies the amount of scaling to apply to the string

pText

the string to calculate the size for

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