Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBFontRenderer Class Referenceabstract

TBFontRenderer renders glyphs from a font file. More...

#include <tb_font_renderer.h>

Inheritance diagram for tb::TBFontRenderer:
tb::TBLinkOf< TBFontRenderer > tb::TBLink

Public Member Functions

virtual TBFontFaceCreate (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
 

Additional Inherited Members

Detailed Description

TBFontRenderer renders glyphs from a font file.

Member Function Documentation

virtual TBFontFace* tb::TBFontRenderer::Create ( TBFontManager font_manager,
const TBStr filename,
const TBFontDescription font_desc 
)
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.


The documentation for this class was generated from the following file: