Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCanvas
Overloads
| Name |
Remarks |
Include Path |
Unreal Specifiers |
void TextSize
(
const UFont* InFont,
FStringView InText,
float& XL,
float& YL,
float ScaleX,
float ScaleY
)
|
Calculates the horizontal and vertical size of a given string. |
Engine/Canvas.h |
|
void TextSize
(
const UFont* InFont,
FStringView InText,
double& XL,
double& YL,
double ScaleX,
double ScaleY
)
|
|
Engine/Canvas.h |
|
void TextSize
(
const UFont* InFont,
FAnsiStringView InText,
float& XL,
float& YL,
float ScaleX,
float ScaleY
)
|
|
Engine/Canvas.h |
|
void TextSize
(
const UFont* InFont,
FAnsiStringView InText,
double& XL,
double& YL,
double ScaleX,
double ScaleY
)
|
|
Engine/Canvas.h |
|
TextSize(const UFont *, FStringView, float &, float &, float, float)
Description
Calculates the horizontal and vertical size of a given string. This is used for clipped text as it does not take wrapping into account.
| |
|
| Name |
TextSize |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path |
#include "Engine/Canvas.h" |
| Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void TextSize
(
const UFont * InFont,
FStringView InText,
float & XL,
float & YL,
float ScaleX,
float ScaleY
)
Parameters
| Name |
Remarks |
| InFont |
The font to use. |
| InText |
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. |
TextSize(const UFont *, FStringView, double &, double &, double, double)
| |
|
| Name |
TextSize |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path |
#include "Engine/Canvas.h" |
| Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void TextSize
(
const UFont * InFont,
FStringView InText,
double & XL,
double & YL,
double ScaleX,
double ScaleY
)
TextSize(const UFont *, FAnsiStringView, float &, float &, float, float)
| |
|
| Name |
TextSize |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path |
#include "Engine/Canvas.h" |
| Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void TextSize
(
const UFont * InFont,
FAnsiStringView InText,
float & XL,
float & YL,
float ScaleX,
float ScaleY
)
TextSize(const UFont *, FAnsiStringView, double &, double &, double, double)
| |
|
| Name |
TextSize |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
| Include Path |
#include "Engine/Canvas.h" |
| Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void TextSize
(
const UFont * InFont,
FAnsiStringView InText,
double & XL,
double & YL,
double ScaleX,
double ScaleY
)