Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
Include |
#include "Engine/Canvas.h" |
Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
Calculates the horizontal and vertical size of a given string. This is used for clipped text as it does not take wrapping into account.
Parameter |
Description |
---|---|
Font |
The font to use. |
Text |
String to calculate for. |
XL |
out Horizontal length of string. |
YL |
out Vertical length of string. |
ScaleX |
Scale that the string is expected to draw at horizontally. |
ScaleY |
Scale that the string is expected to draw at vertically. |