#include <GUIFontTTF.h>
|
| CGUIFontTTF (const std::string &fontIdent) |
|
void | AddReference () |
|
void | RemoveReference () |
|
std::vector< Glyph > | GetHarfBuzzShapedGlyphs (const vecText &text) |
|
float | GetTextWidthInternal (const vecText &text) |
|
float | GetTextWidthInternal (const vecText &text, std::vector< Glyph > &glyph) |
|
float | GetCharWidthInternal (character_t ch) |
|
float | GetTextHeight (float lineSpacing, int numLines) const |
|
float | GetTextBaseLine () const |
|
float | GetLineHeight (float lineSpacing) const |
|
float | GetFontHeight () const |
|
void | DrawTextInternal (CGraphicContext &context, float x, float y, const std::vector< UTILS::COLOR::Color > &colors, const vecText &text, uint32_t alignment, float maxPixelWidth, bool scrolling) |
|
Character * | GetCharacter (character_t letter, FT_UInt glyphIndex) |
|
bool | CacheCharacter (wchar_t letter, uint32_t style, Character *ch, FT_UInt glyphIndex) |
|
void | RenderCharacter (CGraphicContext &context, float posX, float posY, const Character *ch, UTILS::COLOR::Color color, bool roundX, std::vector< SVertex > &vertices) |
|
void | ClearCharacterCache () |
|
virtual std::unique_ptr< CTexture > | ReallocTexture (unsigned int &newHeight)=0 |
|
virtual bool | CopyCharToTexture (FT_BitmapGlyph bitGlyph, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)=0 |
|
virtual void | DeleteHardwareTexture ()=0 |
|
void | SetGlyphStrength (FT_GlyphSlot slot, int glyphStrength) |
|
unsigned int | GetTextureLineHeight () const |
| the height of each line in the texture. Accounts for spacing between lines to avoid characters overlapping. More...
|
|
◆ ~CGUIFontTTF()
CGUIFontTTF::~CGUIFontTTF |
( |
void |
| ) |
|
|
virtual |
◆ CGUIFontTTF()
CGUIFontTTF::CGUIFontTTF |
( |
const std::string & |
fontIdent | ) |
|
|
explicitprotected |
◆ AddReference()
void CGUIFontTTF::AddReference |
( |
| ) |
|
|
protected |
◆ Begin()
void CGUIFontTTF::Begin |
( |
| ) |
|
◆ CacheCharacter()
bool CGUIFontTTF::CacheCharacter |
( |
wchar_t |
letter, |
|
|
uint32_t |
style, |
|
|
Character * |
ch, |
|
|
FT_UInt |
glyphIndex |
|
) |
| |
|
protected |
◆ Clear()
void CGUIFontTTF::Clear |
( |
| ) |
|
◆ ClearCharacterCache()
void CGUIFontTTF::ClearCharacterCache |
( |
| ) |
|
|
protected |
◆ CopyCharToTexture()
◆ CreateGUIFontTTF()
CGUIFontTTF * CGUIFontTTF::CreateGUIFontTTF |
( |
const std::string & |
fontIdent | ) |
|
|
static |
◆ CreateVertexBuffer()
virtual CVertexBuffer CGUIFontTTF::CreateVertexBuffer |
( |
const std::vector< SVertex > & |
vertices | ) |
const |
|
inlinevirtual |
◆ DeleteHardwareTexture()
virtual void CGUIFontTTF::DeleteHardwareTexture |
( |
| ) |
|
|
protectedpure virtual |
◆ DestroyVertexBuffer()
◆ DrawTextInternal()
◆ End()
void CGUIFontTTF::End |
( |
| ) |
|
◆ GetCharacter()
◆ GetCharWidthInternal()
float CGUIFontTTF::GetCharWidthInternal |
( |
character_t |
ch | ) |
|
|
protected |
◆ GetFontHeight()
float CGUIFontTTF::GetFontHeight |
( |
| ) |
const |
|
inlineprotected |
◆ GetFontIdent()
const std::string & CGUIFontTTF::GetFontIdent |
( |
| ) |
const |
|
inline |
◆ GetHarfBuzzShapedGlyphs()
◆ GetLineHeight()
float CGUIFontTTF::GetLineHeight |
( |
float |
lineSpacing | ) |
const |
|
protected |
◆ GetTextBaseLine()
float CGUIFontTTF::GetTextBaseLine |
( |
| ) |
const |
|
inlineprotected |
◆ GetTextHeight()
float CGUIFontTTF::GetTextHeight |
( |
float |
lineSpacing, |
|
|
int |
numLines |
|
) |
| const |
|
protected |
◆ GetTextureLineHeight()
unsigned int CGUIFontTTF::GetTextureLineHeight |
( |
| ) |
const |
|
protected |
the height of each line in the texture. Accounts for spacing between lines to avoid characters overlapping.
◆ GetTextWidthInternal() [1/2]
float CGUIFontTTF::GetTextWidthInternal |
( |
const vecText & |
text | ) |
|
|
protected |
◆ GetTextWidthInternal() [2/2]
float CGUIFontTTF::GetTextWidthInternal |
( |
const vecText & |
text, |
|
|
std::vector< Glyph > & |
glyph |
|
) |
| |
|
protected |
◆ Load()
bool CGUIFontTTF::Load |
( |
const std::string & |
strFilename, |
|
|
float |
height = 20.0f , |
|
|
float |
aspect = 1.0f , |
|
|
float |
lineSpacing = 1.0f , |
|
|
bool |
border = false |
|
) |
| |
◆ ObliqueGlyph()
◆ ReallocTexture()
virtual std::unique_ptr< CTexture > CGUIFontTTF::ReallocTexture |
( |
unsigned int & |
newHeight | ) |
|
|
protectedpure virtual |
◆ RemoveReference()
void CGUIFontTTF::RemoveReference |
( |
| ) |
|
|
protected |
◆ RenderCharacter()
◆ SetGlyphStrength()
◆ CGUIFont
◆ m_cellBaseLine
unsigned int CGUIFontTTF::m_cellBaseLine {0} |
|
protected |
◆ m_cellHeight
unsigned int CGUIFontTTF::m_cellHeight {0} |
|
protected |
◆ m_char
◆ m_charquick
Character* CGUIFontTTF::m_charquick[LOOKUPTABLE_SIZE] {nullptr} |
|
protected |
◆ m_color
◆ m_dynamicCache
◆ m_ellipsesWidth
float CGUIFontTTF::m_ellipsesWidth {0.0f} |
|
protected |
◆ m_face
FT_Face CGUIFontTTF::m_face {nullptr} |
|
protected |
◆ m_fontFileInMemory
std::vector<uint8_t> CGUIFontTTF::m_fontFileInMemory |
|
protected |
◆ m_fontIdent
const std::string CGUIFontTTF::m_fontIdent |
|
protected |
◆ m_hbFont
hb_font_t* CGUIFontTTF::m_hbFont {nullptr} |
|
protected |
◆ m_height
float CGUIFontTTF::m_height {0.0f} |
|
protected |
◆ m_maxChars
int CGUIFontTTF::m_maxChars {0} |
|
protected |
◆ m_nestedBeginCount
unsigned int CGUIFontTTF::m_nestedBeginCount {0} |
|
protected |
◆ m_nTexture
unsigned int CGUIFontTTF::m_nTexture {0} |
|
protected |
◆ m_numChars
int CGUIFontTTF::m_numChars {0} |
|
protected |
◆ m_originX
float CGUIFontTTF::m_originX {0.0f} |
|
protected |
◆ m_originY
float CGUIFontTTF::m_originY {0.0f} |
|
protected |
◆ m_posX
int CGUIFontTTF::m_posX {0} |
|
protected |
◆ m_posY
int CGUIFontTTF::m_posY {0} |
|
protected |
◆ m_renderSystem
◆ m_staticCache
◆ m_stroker
◆ m_texture
std::unique_ptr<CTexture> CGUIFontTTF::m_texture |
|
protected |
◆ m_textureHeight
unsigned int CGUIFontTTF::m_textureHeight {0} |
|
protected |
◆ m_textureScaleX
float CGUIFontTTF::m_textureScaleX {0.0f} |
|
protected |
◆ m_textureScaleY
float CGUIFontTTF::m_textureScaleY {0.0f} |
|
protected |
◆ m_textureWidth
unsigned int CGUIFontTTF::m_textureWidth {0} |
|
protected |
◆ m_vertex
std::vector<SVertex> CGUIFontTTF::m_vertex |
|
protected |
◆ m_vertexTrans
The documentation for this class was generated from the following files: