Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
Include |
#include "Fonts/FontMeasure.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Fonts/FontMeasure.cpp |
virtual FVector2D Measure
(
const FString & Text,
const FSlateFontInfo & InFontInfo,
float FontScale
) const
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
The width and height of the string.
Parameter |
Description |
---|---|
Text |
The string to measure |
InFontInfo |
Information about the font that the string is drawn with |
FontScale |
The scale to apply to the font |