Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateFontMeasure
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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 |
FindLastWholeCharacterIndexBeforeOffset(FStringView, const FSlateFontInfo &, const int32, float)
Description
Finds the last whole character index before the specified position in pixels along the string horizontally
| Name | FindLastWholeCharacterIndexBeforeOffset |
| 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 |
int32 FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text,
const FSlateFontInfo & InFontInfo,
const int32 HorizontalOffset,
float FontScale
) const
The index of the last whole character before the specified horizontal offset
Parameters
| Name | Remarks |
|---|---|
| String | The string to measure |
| InFontInfo | Information about the font used to draw the string |
| HorizontalOffset | Offset horizontally into the string, in pixels |
FindLastWholeCharacterIndexBeforeOffset(const FText &, const FSlateFontInfo &, const int32, float)
Description
Finds the last whole character index before the specified position in pixels along the string horizontally
| Name | FindLastWholeCharacterIndexBeforeOffset |
| 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 |
int32 FindLastWholeCharacterIndexBeforeOffset
(
const FText & Text,
const FSlateFontInfo & InFontInfo,
const int32 HorizontalOffset,
float FontScale
) const
The index of the last whole character before the specified horizontal offset
Parameters
| Name | Remarks |
|---|---|
| String | The string to measure |
| InFontInfo | Information about the font used to draw the string |
| HorizontalOffset | Offset horizontally into the string, in pixels |
FindLastWholeCharacterIndexBeforeOffset(FStringView, int32, int32, const FSlateFontInfo &, const int32, bool, float)
Description
Finds the last whole character index before the specified position in pixels along the text horizontally
| Name | FindLastWholeCharacterIndexBeforeOffset |
| 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 |
int32 FindLastWholeCharacterIndexBeforeOffset
(
FStringView Text,
int32 StartIndex,
int32 EndIndex,
const FSlateFontInfo & InFontInfo,
const int32 HorizontalOffset,
bool IncludeKerningWithPrecedingChar,
float FontScale
) const
The index of the last whole character before the specified horizontal offset
Parameters
| Name | Remarks |
|---|---|
| Text | The text 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 used to draw the string |
| HorizontalOffset | Offset horizontally into the string, in pixels |