7#include "tb_font_renderer.h"
8#include "tb_renderer.h"
9#include "platform/tb_system_interface.h"
10#include "tb_tempbuffer.h"
22 bool Load(
const char* filename,
int size);
24 virtual tb::TBFontFace*
Create(tb::TBFontManager* font_manager,
const char* filename,
const tb::TBFontDescription& font_desc);
27 virtual bool RenderGlyph(tb::TBFontGlyphData* dst_bitmap, UCS4 cp);
virtual bool RenderGlyph(tb::TBFontGlyphData *dst_bitmap, UCS4 cp)
Definition tbuifontrenderer.cc:40
TBUISTBFontRenderer()
Definition tbuifontrenderer.cc:17
tb::TBTempBuffer ttf_buffer
Definition tbuifontrenderer.h:33
~TBUISTBFontRenderer()
Definition tbuifontrenderer.cc:22
float scale
Definition tbuifontrenderer.h:35
virtual void GetGlyphMetrics(tb::TBGlyphMetrics *metrics, UCS4 cp)
Definition tbuifontrenderer.cc:51
virtual int GetAdvance(UCS4 cp1, UCS4 cp2)
Definition tbuifontrenderer.cc:65
virtual tb::TBFontMetrics GetMetrics()
Definition tbuifontrenderer.cc:28
virtual tb::TBFontFace * Create(tb::TBFontManager *font_manager, const char *filename, const tb::TBFontDescription &font_desc)
Definition tbuifontrenderer.cc:89
unsigned char * render_data
Definition tbuifontrenderer.h:34
bool Load(const char *filename, int size)
Definition tbuifontrenderer.cc:76
stbtt_fontinfo font
Definition tbuifontrenderer.h:32
Turbobadger UI Batch.
Definition tbuibatch.h:18