forked from enlightenment/efl
futzing around with tilan's mono font issue - some commented otu debugging -
use the all caps enum for bitmap fonts now... SVN revision: 31496
This commit is contained in:
parent
c1d4685780
commit
2a04c23a33
|
@ -37,7 +37,7 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index)
|
||||||
free(fg);
|
free(fg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (fg->glyph->format != ft_glyph_format_bitmap)
|
if (fg->glyph->format != FT_GLYPH_FORMAT_BITMAP)
|
||||||
{
|
{
|
||||||
error = FT_Glyph_To_Bitmap(&(fg->glyph), ft_render_mode_normal, 0, 1);
|
error = FT_Glyph_To_Bitmap(&(fg->glyph), ft_render_mode_normal, 0, 1);
|
||||||
if (error)
|
if (error)
|
||||||
|
|
|
@ -96,6 +96,20 @@ evas_common_font_query_inset(RGBA_Font *fn, const char *text)
|
||||||
index = evas_common_font_glyph_search(fn, &fi, gl);
|
index = evas_common_font_glyph_search(fn, &fi, gl);
|
||||||
fg = evas_common_font_int_cache_glyph_get(fi, index);
|
fg = evas_common_font_int_cache_glyph_get(fi, index);
|
||||||
if (!fg) return 0;
|
if (!fg) return 0;
|
||||||
|
/*
|
||||||
|
printf("fg->glyph_out->left = %i\n"
|
||||||
|
"fi->src->ft.face->glyph->bitmap_left = %i\n"
|
||||||
|
"fi->src->ft.face->glyph->metrics.horiBearingX = %i\n"
|
||||||
|
"fi->src->ft.face->glyph->metrics.horiBearingY = %i\n"
|
||||||
|
"fi->src->ft.face->glyph->metrics.horiAdvance = %i\n"
|
||||||
|
,
|
||||||
|
(int)fg->glyph_out->left,
|
||||||
|
(int)fi->src->ft.face->glyph->bitmap_left,
|
||||||
|
(int)fi->src->ft.face->glyph->metrics.horiBearingX >> 6,
|
||||||
|
(int)fi->src->ft.face->glyph->metrics.horiBearingY >> 6,
|
||||||
|
(int)fi->src->ft.face->glyph->metrics.horiAdvance >> 6
|
||||||
|
);
|
||||||
|
*/
|
||||||
return fg->glyph_out->left;
|
return fg->glyph_out->left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue