engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
FShapedGlyphSequence类 参考

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

成员函数说明

◆ GetGlyphAtOffset() [1/2]

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

返回
The result data (see FGlyphOffsetResult)

◆ GetGlyphAtOffset() [2/2]

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

注解
The indices used here are relative to the start of the text we were shaped from, even if we were only shaped from a sub-section of that text
返回
The result data (see FGlyphOffsetResult), or an unset value if we couldn't find the character (eg, because you started or ended on a merged ligature, or because the range is out-of-bounds)

◆ GetGlyphsToRender()

const TArray< FShapedGlyphEntry > & FShapedGlyphSequence::GetGlyphsToRender ( ) const
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

◆ GetKerning()

TOptional< int8 > FShapedGlyphSequence::GetKerning ( const int32  InIndex) const

Get the kerning value between the given entry and the next entry in the sequence

注解
The index used here is relative to the start of the text we were shaped from, even if we were only shaped from a sub-section of that text
返回
The kerning, or an unset value if we couldn't get the kerning (eg, because you specified a merged ligature, or because the index is out-of-bounds)

◆ GetMeasuredWidth() [1/2]

int32 FShapedGlyphSequence::GetMeasuredWidth ( ) const

Get the measured width of the entire shaped text

返回
The measured width

◆ GetMeasuredWidth() [2/2]

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

注解
The indices used here are relative to the start of the text we were shaped from, even if we were only shaped from a sub-section of that text
返回
The measured width, or an unset value if the text couldn't be measured (eg, because you started or ended on a merged ligature, or because the range is out-of-bounds)

◆ GetSubSequence()

FShapedGlyphSequencePtr FShapedGlyphSequence::GetSubSequence ( const int32  InStartIndex,
const int32  InEndIndex 
) const

Get a sub-sequence of the specified range

注解
The indices used here are relative to the start of the text we were shaped from, even if we were only shaped from a sub-section of that text
返回
The sub-sequence, or an null if the sub-sequence couldn't be created (eg, because you started or ended on a merged ligature, or because the range is out-of-bounds)

该类的文档由以下文件生成: