|
| IGraphics * | Graphics () |
| FT_Face | GetFaceByName (const char *pFamilyName) |
| bool | IncreaseGlyphMapSize () |
| void | UploadTextures () |
| void | UnloadTextures () |
| FT_UInt | GetCharGlyph (int Chr, FT_Face *pFace, bool AllowReplacementCharacter) |
| void | Grow (const unsigned char *pIn, unsigned char *pOut, int w, int h, int OutlineCount) const |
| int | AdjustOutlineThicknessToFontSize (int OutlineThickness, int FontSize) const |
| void | UploadGlyph (int TextureIndex, int PosX, int PosY, size_t Width, size_t Height, uint8_t *pData) |
| bool | FitGlyph (size_t Width, size_t Height, int &PosX, int &PosY) |
| bool | RenderGlyph (SGlyph &Glyph) |
◆ anonymous enum
| Enumerator |
|---|
| FONT_TEXTURE_FILL | |
| FONT_TEXTURE_OUTLINE | |
| NUM_FONT_TEXTURES | |
◆ CGlyphMap()
| CGlyphMap::CGlyphMap |
( |
IGraphics * | pGraphics | ) |
|
|
inline |
◆ ~CGlyphMap()
| CGlyphMap::~CGlyphMap |
( |
| ) |
|
|
inline |
◆ AddFace()
| void CGlyphMap::AddFace |
( |
FT_Face | Face | ) |
|
|
inline |
◆ AddFallbackFaceByName()
| bool CGlyphMap::AddFallbackFaceByName |
( |
const char * | pFamilyName | ) |
|
|
inline |
◆ AdjustOutlineThicknessToFontSize()
| int CGlyphMap::AdjustOutlineThicknessToFontSize |
( |
int | OutlineThickness, |
|
|
int | FontSize ) const |
|
inlineprivate |
◆ Clear()
| void CGlyphMap::Clear |
( |
| ) |
|
|
inline |
◆ DefaultFace()
| FT_Face CGlyphMap::DefaultFace |
( |
| ) |
const |
|
inline |
◆ FitGlyph()
| bool CGlyphMap::FitGlyph |
( |
size_t | Width, |
|
|
size_t | Height, |
|
|
int & | PosX, |
|
|
int & | PosY ) |
|
inlineprivate |
◆ GetCharGlyph()
| FT_UInt CGlyphMap::GetCharGlyph |
( |
int | Chr, |
|
|
FT_Face * | pFace, |
|
|
bool | AllowReplacementCharacter ) |
|
inlineprivate |
◆ GetFaceByName()
| FT_Face CGlyphMap::GetFaceByName |
( |
const char * | pFamilyName | ) |
|
|
inlineprivate |
◆ GetGlyph()
| const SGlyph * CGlyphMap::GetGlyph |
( |
int | Chr, |
|
|
int | FontSize ) |
|
inline |
◆ Graphics()
◆ Grow()
| void CGlyphMap::Grow |
( |
const unsigned char * | pIn, |
|
|
unsigned char * | pOut, |
|
|
int | w, |
|
|
int | h, |
|
|
int | OutlineCount ) const |
|
inlineprivate |
◆ IconFace()
| FT_Face CGlyphMap::IconFace |
( |
| ) |
const |
|
inline |
◆ IncreaseGlyphMapSize()
| bool CGlyphMap::IncreaseGlyphMapSize |
( |
| ) |
|
|
inlineprivate |
◆ Kerning()
◆ RenderGlyph()
| bool CGlyphMap::RenderGlyph |
( |
SGlyph & | Glyph | ) |
|
|
inlineprivate |
◆ SetDefaultFaceByName()
| bool CGlyphMap::SetDefaultFaceByName |
( |
const char * | pFamilyName | ) |
|
|
inline |
◆ SetFontPreset()
| void CGlyphMap::SetFontPreset |
( |
EFontPreset | FontPreset | ) |
|
|
inline |
◆ SetIconFaceByName()
| bool CGlyphMap::SetIconFaceByName |
( |
const char * | pFamilyName | ) |
|
|
inline |
◆ SetVariantFaceByName()
| bool CGlyphMap::SetVariantFaceByName |
( |
const char * | pFamilyName | ) |
|
|
inline |
◆ Texture()
◆ TextureDimension()
| size_t CGlyphMap::TextureDimension |
( |
| ) |
const |
|
inline |
◆ UnloadTextures()
| void CGlyphMap::UnloadTextures |
( |
| ) |
|
|
inlineprivate |
◆ UploadEntityLayerText()
| void CGlyphMap::UploadEntityLayerText |
( |
const CImageInfo & | TextImage, |
|
|
int | TexSubWidth, |
|
|
int | TexSubHeight, |
|
|
const char * | pText, |
|
|
int | Length, |
|
|
float | x, |
|
|
float | y, |
|
|
int | FontSize ) |
|
inline |
◆ UploadGlyph()
| void CGlyphMap::UploadGlyph |
( |
int | TextureIndex, |
|
|
int | PosX, |
|
|
int | PosY, |
|
|
size_t | Width, |
|
|
size_t | Height, |
|
|
uint8_t * | pData ) |
|
inlineprivate |
◆ UploadTextures()
| void CGlyphMap::UploadTextures |
( |
| ) |
|
|
inlineprivate |
◆ INITIAL_ATLAS_DIMENSION
| int CGlyphMap::INITIAL_ATLAS_DIMENSION = 1024 |
|
staticconstexprprivate |
The initial dimension of the atlas textures. Results in 1 MB of memory being used per texture.
◆ m_apTextureData
◆ m_aTextures
◆ m_DefaultFace
| FT_Face CGlyphMap::m_DefaultFace = nullptr |
|
private |
◆ m_Glyphs
◆ m_IconFace
| FT_Face CGlyphMap::m_IconFace = nullptr |
|
private |
◆ m_pGraphics
◆ m_SelectedFace
| FT_Face CGlyphMap::m_SelectedFace = nullptr |
|
private |
◆ m_TextureAtlas
| CAtlas CGlyphMap::m_TextureAtlas |
|
private |
◆ m_TextureDimension
◆ m_VariantFace
| FT_Face CGlyphMap::m_VariantFace = nullptr |
|
private |
◆ m_vFallbackFaces
| std::vector<FT_Face> CGlyphMap::m_vFallbackFaces |
|
private |
◆ m_vFtFaces
| std::vector<FT_Face> CGlyphMap::m_vFtFaces |
|
private |
◆ MAX_FONT_SIZE
| int CGlyphMap::MAX_FONT_SIZE = 128 |
|
staticconstexprprivate |
The maximum supported font size.
◆ MAXIMUM_ATLAS_DIMENSION
| int CGlyphMap::MAXIMUM_ATLAS_DIMENSION = 16 * 1024 |
|
staticconstexprprivate |
The maximum dimension of the atlas textures. Results in 256 MB of memory being used per texture.
◆ MIN_FONT_SIZE
| int CGlyphMap::MIN_FONT_SIZE = 6 |
|
staticconstexprprivate |
The minimum supported font size.
◆ REPLACEMENT_CHARACTER
| int CGlyphMap::REPLACEMENT_CHARACTER = 0x25a1 |
|
staticconstexprprivate |
White square to indicate missing glyph.
The documentation for this class was generated from the following file: