engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FShapedGlyphEntry结构体 参考

Information for rendering one glyph in a shaped text sequence 更多...

#include <FontCache.h>

Public 成员函数

SLATECORE_API float GetBitmapRenderScale () const
 Get any additional scale that should be applied when rendering this glyph
 
SLATECORE_API bool HasValidGlyph () const
 Check whether this entry contains a valid glyph (non-zero, and not the SlateFontRendererUtils::InvalidSubChar glyph)
 

Public 属性

bool bIsVisible = false
 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 = 0
 The index of this glyph in the FreeType face
 
int8 Kerning = 0
 The "kerning" between this glyph and the next one in the sequence 更多...
 
uint8 NumCharactersInGlyph = 0
 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 = 0
 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 = 0
 The index of this glyph from the source text. 更多...
 
TextBiDi::ETextDirection TextDirection = TextBiDi::ETextDirection::LeftToRight
 The reading direction of the text this glyph was shaped from
 
int16 XAdvance = 0
 The amount to advance in X before drawing the next glyph in the sequence
 
int16 XOffset = 0
 The offset to apply in X when drawing this glyph
 
int16 YAdvance = 0
 The amount to advance in Y before drawing the next glyph in the sequence
 
int16 YOffset = 0
 The offset to apply in Y when drawing this glyph
 

友元

class FSlateFontCache
 

详细描述

Information for rendering one glyph in a shaped text sequence

类成员变量说明

◆ bIsVisible

bool FShapedGlyphEntry::bIsVisible = false

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

False if the glyph is invisible (eg, whitespace or a control code) and should skip drawing, but still include its advance amount.

◆ Kerning

int8 FShapedGlyphEntry::Kerning = 0

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

注解
This value is included in the XAdvance so you never usually need it unless you're manually combining two sets of glyphs together.
This value isn't strictly the kerning value - it's simply the difference between the glyphs horizontal advance, and the shaped horizontal advance (so will contain any accumulated advance added by the shaper)

◆ SourceIndex

int32 FShapedGlyphEntry::SourceIndex = 0

The index of this glyph from the source text.

The source indices may skip characters if the sequence contains ligatures, additionally, some characters produce multiple glyphs leading to duplicate source indices


该结构体的文档由以下文件生成: