From: Behdad Esfahbod Date: Tue, 3 May 2011 05:03:53 +0000 (-0400) Subject: [ft] Fix font->face handling X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d292885893395dcb345dce1010e5c8628a715ef4;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [ft] Fix font->face handling Don't use _cached() --- diff --git a/src/hb-ft.cc b/src/hb-ft.cc index e4e77f5..9d1dbd1 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -238,11 +238,14 @@ hb_ft_font_create (FT_Face ft_face, hb_destroy_func_t destroy) { 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_ft_get_font_funcs (), - ft_face, destroy); + ft_face, NULL); 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.y_scale * (uint64_t) ft_face->units_per_EM) >> 16);