Bug 673497 - corefont fallback not always working
authorKristian Rietveld <kris@loopnest.org>
Mon, 4 Jun 2012 18:27:01 +0000 (20:27 +0200)
committerKristian Rietveld <kris@loopnest.org>
Mon, 4 Jun 2012 19:02:48 +0000 (21:02 +0200)
commitf5135453d26e68f9f2fbe8f0ddb01e437df41384
tree4abec6861f1983f1884a2be0b63113620aceaddb
parentc6f0bfe51ec4ecdde6bb24dc3db921b0b0bd982f
Bug 673497 - corefont fallback not always working

The fallback failed when a "small caps" font was requested. This commit
improves the fallback support. When the first fallback, trying Sans with
the same style fails, we reset the variant, weight and stretch to
default values and try again. With Sans we should always be able to
adhere to the requested style.

Last but not least, output a sensible error message if all fallbacks
fail instead of simply crashing on a NULL pointer somewhere.
pango/pangocoretext-fontmap.c