Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h |
Include |
#include "Fonts/FontCache.h" |
struct FShapedGlyphEntry
Information for rendering one glyph in a shaped text sequence
Name | Description | ||
---|---|---|---|
|
bIsVisible |
True if this is a visible glyph that should be drawn. |
|
|
TSharedPtr< FSh... |
FontFaceData |
Provides access to the FreeType face for this glyph (not available publicly) |
|
GlyphIndex |
The index of this glyph in the FreeType face |
|
|
Kerning |
The "kerning" between this glyph and the next one in the sequence @note This value is included in the XAdvance so you never usually need it unless you're manually combining two sets of glyphs together. |
|
|
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 |
|
|
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 |
|
|
SourceIndex |
The index of this glyph from the source text. |
|
|
TextDirection |
The reading direction of the text this glyph was shaped from |
|
|
XAdvance |
The amount to advance in X before drawing the next glyph in the sequence |
|
|
XOffset |
The offset to apply in X when drawing this glyph |
|
|
YAdvance |
The amount to advance in Y before drawing the next glyph in the sequence |
|
|
YOffset |
The offset to apply in Y when drawing this glyph |
Name | Description | ||
---|---|---|---|
|
float |
GetBitmapRenderScale() |
Get any additional scale that should be applied when rendering this glyph |
|
HasValidGlyph() |
Check whether this entry contains a valid glyph (non-zero, and not the SlateFontRendererUtils::InvalidSubChar glyph) |