Exemple #1
0
float BLF_height(int fontid, const char *str)
{
	FontBLF *font;

	font= BLF_get(fontid);
	if (font)
		return(blf_font_height(font, str));
	return(0.0f);
}
Exemple #2
0
float BLF_height(int fontid, const char *str)
{
	FontBLF *font = BLF_get(fontid);

	if (font && font->glyph_cache) {
		return blf_font_height(font, str);
	}

	return 0.0f;
}
Exemple #3
0
float BLF_height_ex(
        int fontid, const char *str, size_t len,
        struct ResultBLF *r_info)
{
	FontBLF *font = blf_get(fontid);

	BLF_RESULT_CHECK_INIT(r_info);

	if (font && font->glyph_cache) {
		return blf_font_height(font, str, len, r_info);
	}

	return 0.0f;
}