提交 d2928858 编写于 作者: B Behdad Esfahbod

[ft] Fix font->face handling

Don't use _cached()
上级 20001794
...@@ -238,11 +238,14 @@ hb_ft_font_create (FT_Face ft_face, ...@@ -238,11 +238,14 @@ hb_ft_font_create (FT_Face ft_face,
hb_destroy_func_t destroy) hb_destroy_func_t destroy)
{ {
hb_font_t *font; hb_font_t *font;
hb_face_t *face;
font = hb_font_create (hb_ft_face_create_cached (ft_face)); face = hb_ft_face_create (ft_face, destroy);
font = hb_font_create (face);
hb_face_destroy (face);
hb_font_set_funcs (font, hb_font_set_funcs (font,
hb_ft_get_font_funcs (), hb_ft_get_font_funcs (),
ft_face, destroy); ft_face, NULL);
hb_font_set_scale (font, hb_font_set_scale (font,
((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM) >> 16, ((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM) >> 16,
((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM) >> 16); ((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM) >> 16);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册