Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBFontRenderer renders glyphs from a font file. More...
#include <tb_font_renderer.h>
Public Member Functions | |
virtual TBFontFace * | Create (TBFontManager *font_manager, const TBStr &filename, const TBFontDescription &font_desc)=0 |
Open the given font file with this renderer and return a new TBFontFace with it. More... | |
virtual bool | RenderGlyph (TBFontGlyphData *data, UCS4 cp)=0 |
virtual void | GetGlyphMetrics (TBGlyphMetrics *metrics, UCS4 cp)=0 |
virtual TBFontMetrics | GetMetrics ()=0 |
Public Member Functions inherited from tb::TBLinkOf< TBFontRenderer > | |
TBFontRenderer * | GetPrev () const |
TBFontRenderer * | GetNext () const |
Public Member Functions inherited from tb::TBLink | |
bool | IsInList () const |
Return true if the link is currently added to a list. More... | |
Additional Inherited Members | |
Public Attributes inherited from tb::TBLink | |
TBLink * | prev |
TBLink * | next |
TBLinkList * | linklist |
TBFontRenderer renders glyphs from a font file.
|
pure virtual |
Open the given font file with this renderer and return a new TBFontFace with it.
return nullptr if the file can't be opened by this renderer.