Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
| Include | #include "Fonts/FontCache.h" |
Syntax
struct FShapedGlyphEntry
Remarks
Information for rendering one glyph in a shaped text sequence
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsVisible | True if this is a visible glyph that should be drawn. | |
| TSharedPtr< FShapedGlyphFaceData > | FontFaceData | Provides access to the FreeType face for this glyph (not available publicly) | |
| uint32 | GlyphIndex | The index of this glyph in the FreeType face | |
| int8 | Kerning | The "kerning" between this glyph and the next one in the sequence | |
| uint8 | NumCharactersInGlyph | The number of source characters represented by this glyph This is typically 1, however will be greater for ligatures, or may be 0 if a single character produces multiple glyphs | |
| uint8 | NumGraphemeClustersInGlyph | The number of source grapheme clusters represented by this glyph This is typically 1, however will be greater for ligatures, or may be 0 if a single character produces multiple glyphs | |
| int32 | SourceIndex | The index of this glyph from the source text. | |
| TextBiDi::ETextDirection | TextDirection | The reading direction of the text this glyph was shaped from | |
| int16 | XAdvance | The amount to advance in X before drawing the next glyph in the sequence | |
| int16 | XOffset | The offset to apply in X when drawing this glyph | |
| int16 | YAdvance | The amount to advance in Y before drawing the next glyph in the sequence | |
| int16 | YOffset | The offset to apply in Y when drawing this glyph |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Get any additional scale that should be applied when rendering this glyph | ||
| bool | Check whether this entry contains a valid glyph (non-zero, and not the SlateFontRendererUtils::InvalidSubChar glyph) |