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

Manages a potentially large list of non-shaped characters Uses a directly indexed by TCHAR array until space runs out and then maps the rest to conserve memory Every character indexed by TCHAR could potentially cost a lot of memory of a lot of empty entries are created because characters being used are far apart 更多...

#include <FontCache.h>

Public 成员函数

int16 GetBaseline () const
 Returns the baseline for the font used by this character 更多...
 
FCharacterEntry GetCharacter (TCHAR Character, const EFontFallback MaxFontFallback)
 Gets data about how to render and measure a character Caching and atlasing it if needed 更多...
 
int8 GetKerning (const FCharacterEntry &FirstCharacterEntry, const FCharacterEntry &SecondCharacterEntry)
 Gets a kerning value for a pair of character entries 更多...
 
int8 GetKerning (TCHAR FirstChar, TCHAR SecondChar, const EFontFallback MaxFontFallback)
 Gets a kerning value for a pair of characters 更多...
 
uint16 GetMaxHeight () const
 

详细描述

Manages a potentially large list of non-shaped characters Uses a directly indexed by TCHAR array until space runs out and then maps the rest to conserve memory Every character indexed by TCHAR could potentially cost a lot of memory of a lot of empty entries are created because characters being used are far apart

成员函数说明

◆ GetBaseline()

int16 FCharacterList::GetBaseline ( ) const

Returns the baseline for the font used by this character

返回
The offset from the bottom of the max character height to the baseline. Be aware that the value will be negative.

◆ GetCharacter()

FCharacterEntry FCharacterList::GetCharacter ( TCHAR  Character,
const EFontFallback  MaxFontFallback 
)

Gets data about how to render and measure a character Caching and atlasing it if needed

参数
CharacterThe character to get
MaxFontFallbackThe maximum fallback level that can be used when resolving glyphs
返回
Data about the character

◆ GetKerning() [1/2]

int8 FCharacterList::GetKerning ( const FCharacterEntry &  FirstCharacterEntry,
const FCharacterEntry &  SecondCharacterEntry 
)

Gets a kerning value for a pair of character entries

参数
FirstCharacterEntryThe first character entry in the pair
SecondCharacterEntryThe second character entry in the pair
返回
The kerning value

◆ GetKerning() [2/2]

int8 FCharacterList::GetKerning ( TCHAR  FirstChar,
TCHAR  SecondChar,
const EFontFallback  MaxFontFallback 
)

Gets a kerning value for a pair of characters

参数
FirstCharThe first character in the pair
SecondCharThe second character in the pair
MaxFontFallbackThe maximum fallback level that can be used when resolving glyphs
返回
The kerning value

◆ GetMaxHeight()

uint16 FCharacterList::GetMaxHeight ( ) const
返回
The global max height for any character in this font

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