Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateFontMeasure
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::Slate::FDeprecateVector2DResult Measure
(
FStringView Text, |
Measures the width and height of a passed in string. | Fonts/FontMeasure.h | |
UE::Slate::FDeprecateVector2DResult Measure
(
const FText& Text, |
Measures the width and height of a passed in text. | Fonts/FontMeasure.h | |
UE::Slate::FDeprecateVector2DResult Measure
(
FStringView Text, |
Measures the width and height of a passed in string. | Fonts/FontMeasure.h |
Measure(FStringView, const FSlateFontInfo &, float)
Description
Measures the width and height of a passed in string. The height is the maximum height of the largest character in the font/size pair
| Name | Measure |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include Path | #include "Fonts/FontMeasure.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontMeasure.cpp |
UE::Slate::FDeprecateVector2DResult Measure
(
FStringView Text,
const FSlateFontInfo & InFontInfo,
float FontScale
) const
The width and height of the string.
Parameters
| Name | Remarks |
|---|---|
| Text | The string to measure |
| InFontInfo | Information about the font that the string is drawn with |
| FontScale | The scale to apply to the font |
Measure(const FText &, const FSlateFontInfo &, float)
Description
Measures the width and height of a passed in text. The height is the maximum height of the largest character in the font/size pair
| Name | Measure |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include Path | #include "Fonts/FontMeasure.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontMeasure.cpp |
UE::Slate::FDeprecateVector2DResult Measure
(
const FText & Text,
const FSlateFontInfo & InFontInfo,
float FontScale
) const
The width and height of the text.
Parameters
| Name | Remarks |
|---|---|
| Text | The text to measure |
| InFontInfo | Information about the font that the text is drawn with |
| FontScale | The scale to apply to the font |
Measure(FStringView, int32, int32, const FSlateFontInfo &, bool, float)
Description
Measures the width and height of a passed in string. The height is the maximum height of the largest character in the font/size pair
| Name | Measure |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include Path | #include "Fonts/FontMeasure.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontMeasure.cpp |
UE::Slate::FDeprecateVector2DResult Measure
(
FStringView Text,
int32 StartIndex,
int32 EndIndex,
const FSlateFontInfo & InFontInfo,
bool IncludeKerningWithPrecedingChar,
float FontScale
) const
The width and height of the string.
Parameters
| Name | Remarks |
|---|---|
| Text | The string to measure |
| StartIndex | The inclusive index to start measuring the string at |
| EndIndex | The inclusive index to stop measuring the string at |
| InFontInfo | Information about the font that the string is drawn with |
| FontScale | The scale to apply to the font |