[ft] Disable ppem setting
The calculations were wrong. FreeType makes it really hard to set size and ppem independently. For now, disable it. Need to come up with a fix later.
This commit is contained in:
parent
cdf7444505
commit
2023e2b54d
|
@ -466,8 +466,11 @@ hb_ft_font_set_funcs (hb_font_t *font)
|
||||||
|
|
||||||
FT_Set_Char_Size (ft_face,
|
FT_Set_Char_Size (ft_face,
|
||||||
font->x_scale, font->y_scale,
|
font->x_scale, font->y_scale,
|
||||||
|
0, 0);
|
||||||
|
#if 0
|
||||||
font->x_ppem * 72 * 64 / font->x_scale,
|
font->x_ppem * 72 * 64 / font->x_scale,
|
||||||
font->y_ppem * 72 * 64 / font->y_scale);
|
font->y_ppem * 72 * 64 / font->y_scale);
|
||||||
|
#endif
|
||||||
|
|
||||||
ft_face->generic.data = blob;
|
ft_face->generic.data = blob;
|
||||||
ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob;
|
ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob;
|
||||||
|
|
Loading…
Reference in New Issue