void BLF_width_and_height(int fontid, const char *str, float *width, float *height) { FontBLF *font; font= BLF_get(fontid); if (font) blf_font_width_and_height(font, str, width, height); }
void BLF_width_and_height(int fontid, const char *str, float *width, float *height) { FontBLF *font = BLF_get(fontid); if (font && font->glyph_cache) { blf_font_width_and_height(font, str, width, height); } }
void BLF_width_and_height(int fontid, const char *str, size_t len, float *r_width, float *r_height) { FontBLF *font = blf_get(fontid); if (font && font->glyph_cache) { blf_font_width_and_height(font, str, len, r_width, r_height, NULL); } else { *r_width = *r_height = 0.0f; } }