UCanvas::ClippedStrLen

Calculate the length of a 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 ClippedStrLen
(
    const UFont * Font,
    float ScaleX,
    float ScaleY,
    int32 & XL,
    int32 & YL,
    const TCHAR * Text
)

Remarks

Calculate the length of a string.

Parameters

Parameter

Description

Font

The font used.

ScaleX

Scale in X axis.

ScaleY

Scale in Y axis.

XL

out Horizontal length of string.

YL

out Vertical length of string.

Text

String to calculate 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