[HarfBuzz] What the correct way to set font size with FreeType?

Khaled Hosny khaledhosny at eglug.org
Sat Mar 2 10:50:50 PST 2013


Hi all,

So far I have been calling FT_Set_Char_Size() with point size * 46
before hb_ft_font_create(), but today I had a problem with Hiragino
Mincho Pro (and other Mac Japanese fonts) returning huge glyph advances,
after a bit of debugging I found that adding FT_LOAD_NO_BITMAP to
load_flags in hb_ft_get_glyph_h_advance() fixes the issue, but since
hb-view does not have a problem I think I'm doing something wrong here.
Any insights?

Regards,
Khaled



More information about the HarfBuzz mailing list