Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts > API/Runtime/SlateCore/Fonts/FShapedGlyphSequence > API/Runtime/SlateCore/Fonts/FShapedGlyphSequence/GetMeasuredWidth
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include | #include "Fonts/FontCache.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp |
TOptional< int32 > GetMeasuredWidth
&40;
const int32 InStartIndex,
const int32 InEndIndex,
const bool InIncludeKerningWithPrecedingGlyph
&41; const
Remarks
Get the measured width of the specified range of this shaped text
The indices used here are relative to the start of the text we were shaped from, even if we were only shaped from a sub-section of that text The measured width, or an unset value if the text couldn't be measured (eg, because you started or ended on a merged ligature, or because the range is out-of-bounds)