Karma Engine
Loading...
Searching...
No Matches
KGFont Struct Reference
Collaboration diagram for KGFont:

Public Member Functions

const KGFontGlyphFindGlyph (KGWchar c) const
 
const KGFontGlyphFindGlyphNoFallback (KGWchar c) const
 
float GetCharAdvance (KGWchar c) const
 
bool IsLoaded () const
 
const char * GetDebugName () const
 
KGVec2 CalcTextSizeA (float size, float max_width, float wrap_width, const char *text_begin, const char *text_end=NULL, const char **remaining=NULL) const
 
const char * CalcWordWrapPositionA (float scale, const char *text, const char *text_end, float wrap_width) const
 
void RenderChar (KGDrawList *draw_list, float size, const KGVec2 &pos, KGU32 col, KGWchar c) const
 
void RenderText (KGDrawList *draw_list, float size, const KGVec2 &pos, KGU32 col, const KGVec4 &clip_rect, const char *text_begin, const char *text_end, float wrap_width=0.0f, bool cpu_fine_clip=false) const
 
void BuildLookupTable ()
 
void ClearOutputData ()
 
void GrowIndex (int new_size)
 
void AddGlyph (const KGFontConfig *src_cfg, KGWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x)
 
void AddRemapChar (KGWchar dst, KGWchar src, bool overwrite_dst=true)
 
void SetGlyphVisible (KGWchar c, bool visible)
 
bool IsGlyphRangeUnused (unsigned int c_begin, unsigned int c_last)
 

Public Attributes

KGVector< float > IndexAdvanceX
 
float FallbackAdvanceX
 
float FontSize
 
KGVector< KGWchar > IndexLookup
 
KGVector< KGFontGlyphGlyphs
 
const KGFontGlyphFallbackGlyph
 
KGFontAtlasContainerAtlas
 
const KGFontConfigConfigData
 
short ConfigDataCount
 
KGWchar FallbackChar
 
KGWchar EllipsisChar
 
KGWchar DotChar
 
bool DirtyLookupTables
 
float Scale
 
float Ascent
 
float Descent
 
int MetricsTotalSurface
 
KGU8 Used4kPagesMap [(KG_UNICODE_CODEPOINT_MAX+1)/4096/8]
 

The documentation for this struct was generated from the following files: