summaryrefslogtreecommitdiff
path: root/pango/pangoatsui.h
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2009-12-22 12:26:12 +0100
committerKristian Rietveld <kris@gtk.org>2009-12-22 12:32:38 +0100
commit0f06d7758bc37a4942342d2c17a88944cbc88adb (patch)
treefd16c312793da79c5d92e850faea92ac799bebf6 /pango/pangoatsui.h
parentc39acaa75e118261838f74ce568c23f6643f9352 (diff)
downloadpango-0f06d7758bc37a4942342d2c17a88944cbc88adb.tar.gz
Revert usage of CoreText in ATSUI backend
Next to CGFontRef we also store an ATSFontRef now. This required the addition of the public for backends function pango_atsui_font_get_atsfont(). I have marked this call to be available starting version 1.27, as Pango is now in the midst of the 1.26 series. Since we now store the ATSFontRef next to CGFontRef, we can continue to make use of the ATS API in pango_cairo_atsui_font_create_metrics_for_context(). The CoreText calls have been removed. Both Tiger and earlier, and Leopard and later machines will now use the ATS API. It is well known that the ATS API has been deprecated in Leopard. In the near future a brand-new CoreText backend has to be written (from scratch) that should be installed and used on Macs running Leopard and later. This patch has been tested on 32-bit Tiger and 64-bit Snow Leopard and found to be functioning correctly. The build should now work again fine on Tiger machines, as it has been broken since the introduction of the CoreText calls.
Diffstat (limited to 'pango/pangoatsui.h')
-rw-r--r--pango/pangoatsui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangoatsui.h b/pango/pangoatsui.h
index 12db6de3..3ca558e2 100644
--- a/pango/pangoatsui.h
+++ b/pango/pangoatsui.h
@@ -68,7 +68,8 @@ struct _PangoATSUIFontClass
#endif /* PANGO_ENABLE_BACKEND */
-CGFontRef pango_atsui_font_get_cgfont (PangoATSUIFont *font);
+CGFontRef pango_atsui_font_get_cgfont (PangoATSUIFont *font);
+ATSFontRef pango_atsui_font_get_atsfont (PangoATSUIFont *font);
#endif /* PANGO_ENABLE_ENGINE || PANGO_ENABLE_BACKEND */