void BLF_draw_ascii(int fontid, const char *str, size_t len) { FontBLF *font= BLF_get(fontid); if (font) { blf_draw__start(font); blf_font_draw_ascii(font, str, len); blf_draw__end(); } }
void BLF_draw_ascii(int fontid, const char *str, size_t len) { FontBLF *font = BLF_get(fontid); GLint mode, param; if (font && font->glyph_cache) { blf_draw__start(font, &mode, ¶m); blf_font_draw_ascii(font, str, len); blf_draw__end(mode, param); } }
int BLF_draw_mono(int fontid, const char *str, size_t len, int cwidth) { FontBLF *font = blf_get(fontid); GLint mode, param; int columns = 0; if (font && font->glyph_cache) { blf_draw__start(font, &mode, ¶m); columns = blf_font_draw_mono(font, str, len, cwidth); blf_draw__end(mode, param); } return columns; }