Navigation
API > API/Runtime > API/Runtime/SlateCore
| Name | FSlateFontMeasure |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontMeasure.h |
| Include Path | #include "Fonts/FontMeasure.h" |
Syntax
class FSlateFontMeasure
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateFontMeasure
(
const TSharedRef< class FSlateFontCache >& InFontCache |
Fonts/FontMeasure.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FontCache | TSharedRef< class FSlateFontCache > | Fonts/FontMeasure.h | ||
| FontToMeasureCache | TMap< FSlateFontKey, TSharedPtr< FSlateFontMeasureCache >, FDefaultSetAllocator, FSlateFontKeyFuncs< TSharedPtr< FSlateFontMeasureCache > > > | Mapping Font keys to cached data | Fonts/FontMeasure.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindCharacterIndexAtOffset
(
FStringView Text, |
Finds the character index at the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindCharacterIndexAtOffset
(
FStringView Text, |
Finds the character index at the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindCharacterIndexAtOffset
(
const FText& Text, |
Finds the character index at the specified position in pixels along the text horizontally | Fonts/FontMeasure.h | |
int32 FindFirstWholeCharacterIndexAfterOffset
(
FStringView Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindFirstWholeCharacterIndexAfterOffset
(
const FText& Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindFirstWholeCharacterIndexAfterOffset
(
FStringView Text, |
Finds the first whole character index after the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text, |
Finds the last whole character index before the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindLastWholeCharacterIndexBeforeOffset
(
const FText& Text, |
Finds the last whole character index before the specified position in pixels along the string horizontally | Fonts/FontMeasure.h | |
int32 FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text, |
Finds the last whole character index before the specified position in pixels along the text horizontally | Fonts/FontMeasure.h | |
void FlushCache() |
Fonts/FontMeasure.h | ||
int16 GetBaseline
(
const FSlateFontInfo& InFontInfo, |
Returns the baseline for the specified font. | Fonts/FontMeasure.h | |
int8 GetKerning
(
const FSlateFontInfo& InFontInfo, |
Returns the kerning value for the specified pair of characters. | Fonts/FontMeasure.h | |
uint16 GetMaxCharacterHeight
(
const FSlateFontInfo& InFontInfo, |
Returns the height of the largest character in the font. | 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 | |
UE::Slate::FDeprecateVector2DResult Measure
(
FStringView Text, |
Measures the width and height of a passed in string. | Fonts/FontMeasure.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FSlateFontMeasure > Create
(
const TSharedRef< class FSlateFontCache >& FontCache |
Fonts/FontMeasure.h |