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

Fix "[util] Fix hb-view crash with bogus font."

上级 da4a2a14
......@@ -207,7 +207,7 @@ view_cairo_t::create_scaled_font (const font_options_t *font_opts)
FT_Face ft_face = hb_ft_font_get_face (font);
if (!ft_face)
/* This allows us to get some boxes at least... */
cairo_face = cairo_toy_font_face_create ("sans",
cairo_face = cairo_toy_font_face_create ("@cairo:sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册