summaryrefslogtreecommitdiff
path: root/pango/pangocoretext.c
Commit message (Collapse)AuthorAgeFilesLines
* Port PangoCoreTextFont to use GWeakRefJohn Ralls2012-09-251-8/+9
| | | | For its PangoCoreTextFontMap* member.
* Make CoreText backend more robust against broken fontsKristian Rietveld2012-01-281-0/+4
| | | | | | | | | | | | | | | Patch written in collaboration with Michael Natterer. Some CTFontDescriptors apparently do not have a style name or font family name set. This patch makes the code take such corner cases into account. The font family problem only appears to occur on Snow Leopard systems, we try to fall back on the font name (postscript name), if that fails, we fall back on a default fallback. In some cases a coverage is also not set. (This seems to happen when we cannot map a broken font back to a correct font descriptor). In such cases we simply return an empty PangoCoverage, which will likely cause the engine to fallback on a different font.
* CoreText backend: implement font fallbacksKristian Rietveld2012-01-281-23/+71
| | | | | | | | | | | | | | | 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.
* Remove pointless FIXMEKristian Rietveld2011-04-141-1/+0
|
* Start implementation of CoreText backendKristian Rietveld2011-04-141-0/+205
On Mac OS X systems where CoreText is available (that is, 10.5 or higher), we will build the CoreText backend instead of the ATSUI backend. In this case, the ATSUI backend will not be built and installed. This change is necessary because since Mac OS 10.5 ATSUI has been marked as deprecated. For older systems, we will have to continue to use the ATSUI backend.