Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts > API/Runtime/SlateCore/Fonts/FSlateFontMeasure > API/Runtime/SlateCore/Fonts/FSlateFontMeasure/Measure
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include | #include "Fonts/FontMeasure.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontMeasure.cpp |
UE::Slate::FDeprecateVector2DResult Measure
&40;
const FText & Text,
const FSlateFontInfo & InFontInfo,
float FontScale
&41; const
Remarks
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 The width and height of the text.
Parameters
| Name | Description |
|---|---|
| Text | The text to measure |
| InFontInfo | Information about the font that the text is drawn with |
| FontScale | The scale to apply to the font |