From 4a5edfac0c0408d97c1ecd1b547cea87d06ab113 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 7 Mar 2013 22:03:29 +0100 Subject: Disable "faux" or "synthesized" font faces. (bzr r12177) --- src/libnrtype/FontFactory.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index a9220d867..a1a9ddc89 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -741,6 +741,11 @@ void font_factory::GetUIFamiliesAndStyles(FamilyToStylesMap *map) continue; } + // Disable synthesized (faux) font faces + if (pango_font_face_is_synthesized(faces[currentFace]) ) { + continue; + } + PangoFontDescription *faceDescr = pango_font_face_describe(faces[currentFace]); if (faceDescr) { Glib::ustring familyUIName = GetUIFamilyString(faceDescr); -- cgit v1.2.3