FShapedGlyphEntry

Information for rendering one glyph in a shaped text sequence

Windows
MacOS
Linux

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

Name Description

Public variable

bool

 

bIsVisible

True if this is a visible glyph that should be drawn.

Public variable

TSharedPtr< FSh...

 

FontFaceData

Provides access to the FreeType face for this glyph (not available publicly)

Public variable

uint32

 

GlyphIndex

The index of this glyph in the FreeType face

Public variable

int8

 

Kerning

The "kerning" between this glyph and the next one in the sequence

Public variable

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

Public variable

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

Public variable

int32

 

SourceIndex

The index of this glyph from the source text.

Public variable

TextBiDi::EText...

 

TextDirection

The reading direction of the text this glyph was shaped from

Public variable

int16

 

XAdvance

The amount to advance in X before drawing the next glyph in the sequence

Public variable

int16

 

XOffset

The offset to apply in X when drawing this glyph

Public variable

int16

 

YAdvance

The amount to advance in Y before drawing the next glyph in the sequence

Public variable

int16

 

YOffset

The offset to apply in Y when drawing this glyph

Functions

Name Description

Public function Const

float

 

GetBitmapRenderScale()

Get any additional scale that should be applied when rendering this glyph

Public function Const

bool

 

HasValidGlyph()

Check whether this entry contains a valid glyph (non-zero, and not the SlateFontRendererUtils::InvalidSubChar glyph)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss