Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Fonts > FSlateFontMeasure > FindLastWholeCharacterIndexBeforeOffset
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 |
int32 FindLastWholeCharacterIndexBeforeOffset
(
const FText & Text,
const FSlateFontInfo & InFontInfo,
const int32 HorizontalOffset,
float FontScale
) const
Remarks
Finds the last whole character index before the specified position in pixels along the string horizontally The index of the last whole character before the specified horizontal offset
Parameters
Name | Description |
---|---|
String | The string to measure |
InFontInfo | Information about the font used to draw the string |
HorizontalOffset | Offset horizontally into the string, in pixels |