CoreText backend: implement font fallbacks
authorKristian Rietveld <kris@lanedo.com>
Fri, 14 Oct 2011 09:25:21 +0000 (11:25 +0200)
committerKristian Rietveld <kris@lanedo.com>
Sat, 28 Jan 2012 10:24:26 +0000 (11:24 +0100)
commit37e74619215ede8a4fa7f5edabab14b517e673b2
treeda27a427e7fe293451bddd0cde4d9f4d8b1e67d0
parent2edc014f3c244be31deab6e584db54f87d223965
CoreText backend: implement font fallbacks

We implement font fallbacks by making use of
CTFontCopyDefaultCascadeList, a public, non-exposed, symbol in the
CoreText library.  We might want to handle this differently.

The code now also uses a PangoCoreTextFontsetKey and
PangoCoreTextFontKey, similar to the font config backend. This has also
helped to clean up the code in general.

This patch contains two fixes by Michael Natterer:
 1. Fix a bug in pango_core_text_font_key_equal() where the return value
of memcmp() was wrongly interpreted.
 2. Cache PangoCoverage in PangoCoreTextFont.
pango/pangocairo-coretext.h
pango/pangocairo-coretextfont.c
pango/pangocairo-coretextfontmap.c
pango/pangocoretext-fontmap.c
pango/pangocoretext-private.h
pango/pangocoretext.c