예제 #1
0
파일: blf.c 프로젝트: OldBrunet/BGERTPS
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);
}
예제 #2
0
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);
	}
}
예제 #3
0
파일: blf.c 프로젝트: RiazAhamed/NewBlender
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;
	}
}