From bc9b1244c8cf0852df0e23b660b4f7e6123c6ec2 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 9 Jan 2014 21:49:49 -0500 Subject: Make Sans the default if pango can't get the family name from the font description. Helps fix bug #1230241 Fixed bugs: - https://launchpad.net/bugs/1230241 (bzr r12908) --- src/libnrtype/font-lister.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 759acfb26..8dd6a2091 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -286,6 +286,8 @@ namespace Inkscape PangoFontDescription *descr = pango_font_description_from_string(fontspec.c_str()); const gchar* family = pango_font_description_get_family(descr); + if(!family) + family = "Sans"; Glib::ustring Family = family; // PANGO BUG... -- cgit v1.2.3