2008-04-21 Behdad Esfahbod <behdad@gnome.org>
+ * configure.in:
+ * pango/pangocairo-atsui.h:
+ * pango/pangocairo-atsuifont.c
+ (pango_cairo_atsui_font_create_font_face):
+ * pango/pangocairo-fontmap.c
+ (pango_cairo_font_map_new_for_font_type):
+ Require cairo >= 1.6.4. Remove compat cruft that were added to
+ support older cairo that had cairo-atsui instead of cairo-quartz-font.
+
+2008-04-21 Behdad Esfahbod <behdad@gnome.org>
+
Bug 514617 – Add pango_cairo_font_map_set_default()
* docs/pango-sections.txt:
have_cairo_freetype=false
have_cairo_win32=false
have_cairo_atsui=false
-cairo_required=1.2.6
+cairo_required=1.6.4
PKG_CHECK_MODULES(CAIRO, cairo >= $cairo_required, have_cairo=true, AC_MSG_RESULT([no]))
PKG_CHECK_EXISTS(cairo-win32 >= $cairo_required, have_cairo_win32=true, :)
fi
if $have_cairo_win32; then
- AC_DEFINE(HAVE_CAIRO_WIN32, 1, [Whether Cairo uses the Win32 GDI for fonts])
+ AC_DEFINE(HAVE_CAIRO_WIN32, 1, [Whether Cairo can use the Win32 GDI for fonts])
have_cairo=true
fi
PKG_CHECK_EXISTS(cairo-ft >= $cairo_required, have_cairo_freetype=true, :)
fi
if $have_cairo_freetype; then
- AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo uses FreeType for fonts])
+ AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo can use FreeType for fonts])
have_cairo=true
fi
if $have_atsui; then
- # for transition from old cairo-atsui to new cairo-quartz-font
- PKG_CHECK_EXISTS(cairo-atsui >= $cairo_required, have_cairo_atsui=true, :)
PKG_CHECK_EXISTS(cairo-quartz-font >= $cairo_required, have_cairo_atsui=true, :)
fi
if $have_cairo_atsui; then
- AC_DEFINE(HAVE_CAIRO_ATSUI, 1, [Whether Cairo uses ATSUI for fonts])
+ AC_DEFINE(HAVE_CAIRO_ATSUI, 1, [Whether Cairo can use ATSUI for fonts])
have_cairo=true
fi
#include "pangoatsui-private.h"
#include <pango/pangocairo.h>
-#ifdef CAIRO_HAS_QUARTZ_FONT
#include <cairo-quartz.h>
-#else
-#include <cairo-atsui.h>
-#endif
G_BEGIN_DECLS
logical_rect);
}
-/* XXX remove when we require cairo 1.6 */
-#undef cairo_atsui_font_face_create_for_atsu_font_id
-cairo_public cairo_font_face_t *
-cairo_atsui_face_create_for_atsu_font_id (ATSUFontID font_id);
-
static cairo_font_face_t *
pango_cairo_atsui_font_create_font_face (PangoCairoFont *font)
{
ATSUFontID font_id;
font_id = pango_atsui_font_get_atsu_font_id (afont);
- return cairo_atsui_font_face_create_for_atsu_font_id (font_id);
+ return cairo_quartz_font_face_create_for_atsu_font_id (font_id);
}
static int
switch (fonttype)
{
#if defined(HAVE_CAIRO_ATSUI)
- case CAIRO_FONT_TYPE_ATSUI:
+ case CAIRO_FONT_TYPE_QUARTZ:
return g_object_new (PANGO_TYPE_CAIRO_ATSUI_FONT_MAP, NULL);
#endif
#if defined(HAVE_CAIRO_WIN32)