mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
Fix "[util] Fix hb-view crash with bogus font."
This commit is contained in:
1 parent
da4a2a1426
commit
d2b3ab9ece
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user