Information for rendering a shaped text sequence 更多...
#include <FontCache.h>
类 | |
| struct | FGlyphOffsetResult |
| Return data used by GetGlyphAtOffset 更多... | |
Public 成员函数 | |
| uint32 | GetAllocatedSize () const |
| Get the amount of memory allocated to this sequence | |
| const UObject * | GetFontMaterial () const |
| Get the material to use when rendering these glyphs | |
| const FFontOutlineSettings & | GetFontOutlineSettings () const |
| Get the font outline settings to use when rendering these glyphs | |
| FGlyphOffsetResult | GetGlyphAtOffset (FSlateFontCache &InFontCache, const int32 InHorizontalOffset, const int32 InStartOffset=0) const |
| Get the information for the glyph at the specified position in pixels along the string horizontally 更多... | |
| TOptional< FGlyphOffsetResult > | GetGlyphAtOffset (FSlateFontCache &InFontCache, const int32 InStartIndex, const int32 InEndIndex, const int32 InHorizontalOffset, const int32 InStartOffset=0, const bool InIncludeKerningWithPrecedingGlyph=true) const |
| Get the information for the glyph at the specified position in pixels along the string horizontally 更多... | |
| const TArray< FShapedGlyphEntry > & | GetGlyphsToRender () const |
| Get the array of glyphs in this sequence. 更多... | |
| TOptional< int8 > | GetKerning (const int32 InIndex) const |
| Get the kerning value between the given entry and the next entry in the sequence 更多... | |
| uint16 | GetMaxTextHeight () const |
| Get the maximum height of any glyph in the font we're using | |
| int32 | GetMeasuredWidth () const |
| Get the measured width of the entire shaped text 更多... | |
| TOptional< int32 > | GetMeasuredWidth (const int32 InStartIndex, const int32 InEndIndex, const bool InIncludeKerningWithPrecedingGlyph=true) const |
| Get the measured width of the specified range of this shaped text 更多... | |
| FShapedGlyphSequencePtr | GetSubSequence (const int32 InStartIndex, const int32 InEndIndex) const |
| Get a sub-sequence of the specified range 更多... | |
| int16 | GetTextBaseline () const |
| Get the baseline to use when drawing the glyphs in this sequence | |
| bool | IsDirty () const |
| Check to see whether this glyph sequence is dirty (ie, contains glyphs with invalid font pointers) | |
Information for rendering a shaped text sequence
| FGlyphOffsetResult FShapedGlyphSequence::GetGlyphAtOffset | ( | FSlateFontCache & | InFontCache, |
| const int32 | InHorizontalOffset, | ||
| const int32 | InStartOffset = 0 |
||
| ) | const |
Get the information for the glyph at the specified position in pixels along the string horizontally
| TOptional< FGlyphOffsetResult > FShapedGlyphSequence::GetGlyphAtOffset | ( | FSlateFontCache & | InFontCache, |
| const int32 | InStartIndex, | ||
| const int32 | InEndIndex, | ||
| const int32 | InHorizontalOffset, | ||
| const int32 | InStartOffset = 0, |
||
| const bool | InIncludeKerningWithPrecedingGlyph = true |
||
| ) | const |
Get the information for the glyph at the specified position in pixels along the string horizontally
|
inline |
Get the array of glyphs in this sequence.
This data will be ordered so that you can iterate and draw left-to-right, which means it will be backwards for right-to-left languages
| TOptional< int8 > FShapedGlyphSequence::GetKerning | ( | const int32 | InIndex | ) | const |
Get the kerning value between the given entry and the next entry in the sequence
| int32 FShapedGlyphSequence::GetMeasuredWidth | ( | ) | const |
Get the measured width of the entire shaped text
| TOptional< int32 > FShapedGlyphSequence::GetMeasuredWidth | ( | const int32 | InStartIndex, |
| const int32 | InEndIndex, | ||
| const bool | InIncludeKerningWithPrecedingGlyph = true |
||
| ) | const |
Get the measured width of the specified range of this shaped text
| FShapedGlyphSequencePtr FShapedGlyphSequence::GetSubSequence | ( | const int32 | InStartIndex, |
| const int32 | InEndIndex | ||
| ) | const |
Get a sub-sequence of the specified range