Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts > API/Runtime/SlateCore/Fonts/FSlateFontMeasure > API/Runtime/SlateCore/Fonts/FSlateFontMeasure/FindCharacterIndexAtOffset
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 FindCharacterIndexAtOffset
&40;
const FString & Text,
const FSlateFontInfo & InFontInfo,
const int32 HorizontalOffset,
float FontScale
&41; const
Remarks
Finds the character index at the specified position in pixels along the string horizontally The index of the character closest to the specified horizontal offset
Parameters
| Name | Description |
|---|---|
| Text | The string to measure |
| FontName | The name of the font the string is drawn with |
| FontSize | The size of the font |
| HorizontalOffset | Offset horizontally into the string, in pixels |
| FontScale | The scale to apply to the font |