From d2b3ab9ecebbf46cb9dac1f09c17379c50ea4575 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 16 Sep 2011 16:59:17 -0400 Subject: [PATCH] Fix "[util] Fix hb-view crash with bogus font." --- util/view-cairo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/view-cairo.cc b/util/view-cairo.cc index 33921e96b..9ca44c8f1 100644 --- a/util/view-cairo.cc +++ b/util/view-cairo.cc @@ -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