提交 2f2ceee1 编写于 作者: B Behdad Esfahbod

Minor

上级 2452543f
...@@ -70,12 +70,13 @@ openFont(const char* fontFile) ...@@ -70,12 +70,13 @@ openFont(const char* fontFile)
if ((ft_error = FT_Set_Char_Size (ft_face, 2000, 1000, 0, 0))) if ((ft_error = FT_Set_Char_Size (ft_face, 2000, 1000, 0, 0)))
abort(); abort();
hb_font = hb_ft_font_create (ft_face, NULL); hb_font = hb_ft_font_create (ft_face, NULL);
hb_face = hb_ft_face_create_cached(ft_face); hb_face = hb_face_reference (hb_font_get_face (hb_font));
} }
static inline void static inline void
closeFont (void) closeFont (void)
{ {
hb_face_destroy (hb_face);
hb_font_destroy (hb_font); hb_font_destroy (hb_font);
FT_Done_Face (ft_face); FT_Done_Face (ft_face);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册