Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FShapedGlyphSequence
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetMeasuredWidth () |
Get the measured width of the entire shaped text | Fonts/FontCache.h | |
TOptional< int32 > GetMeasuredWidth
(
const int32 InStartIndex, |
Get the measured width of the specified range of this shaped text | Fonts/FontCache.h |
GetMeasuredWidth()
Description
Get the measured width of the entire shaped text
| Name | GetMeasuredWidth |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include Path | #include "Fonts/FontCache.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp |
int32 GetMeasuredWidth() const
The measured width
GetMeasuredWidth(const int32, const int32, const bool)
Description
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
| Name | GetMeasuredWidth |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include Path | #include "Fonts/FontCache.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Fonts/FontCache.cpp |
TOptional < int32 > GetMeasuredWidth
(
const int32 InStartIndex,
const int32 InEndIndex,
const bool InIncludeKerningWithPrecedingGlyph
) const
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)