Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include | #include "Fonts/FontMeasure.h" |
Syntax
class FSlateFontMeasure
Constructors
No constructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FSlateFontMeasure > | Create
(
const TSharedRef< class FSlateFontCache >& FontCache |
||
| int32 | FindCharacterIndexAtOffset
(
FStringView Text, |
Finds the character index at the specified position in pixels along the string horizontally | |
| int32 | FindCharacterIndexAtOffset
(
const FText& Text, |
Finds the character index at the specified position in pixels along the text horizontally | |
| int32 | FindCharacterIndexAtOffset
(
FStringView Text, |
Finds the character index at the specified position in pixels along the string horizontally | |
| int32 | FindFirstWholeCharacterIndexAfterOffset
(
FStringView Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | |
| int32 | FindFirstWholeCharacterIndexAfterOffset
(
const FText& Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | |
| int32 | FindFirstWholeCharacterIndexAfterOffset
(
FStringView Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | |
| int32 | FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text, |
Finds the last whole character index before the specified position in pixels along the string horizontally | |
| int32 | FindLastWholeCharacterIndexBeforeOffset
(
const FText& Text, |
Finds the last whole character index before the specified position in pixels along the string horizontally | |
| int32 | FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text, |
Finds the last whole character index before the specified position in pixels along the text horizontally | |
| void | FlushCache () |
||
| int16 | GetBaseline
(
const FSlateFontInfo& InFontInfo, |
Returns the baseline for the specified font. | |
| int8 | GetKerning
(
const FSlateFontInfo& InFontInfo, |
Returns the kerning value for the specified pair of characters. | |
| uint16 | GetMaxCharacterHeight
(
const FSlateFontInfo& InFontInfo, |
Returns the height of the largest character in the font. | |
| UE::Slate::FDeprecateVector2DResult | Measure
(
const FText& Text, |
Measures the width and height of a passed in text. | |
| UE::Slate::FDeprecateVector2DResult | Measure
(
FStringView Text, |
Measures the width and height of a passed in string. | |
| UE::Slate::FDeprecateVector2DResult | Measure
(
FStringView Text, |
Measures the width and height of a passed in string. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ELastCharacterIndexFormat |