pango r2601 - in trunk: . pango
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: pango r2601 - in trunk: . pango
- Date: Mon, 21 Apr 2008 20:50:22 +0100 (BST)
Author: behdad
Date: Mon Apr 21 19:50:21 2008
New Revision: 2601
URL: http://svn.gnome.org/viewvc/pango?rev=2601&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/pango/pangocairo-atsui.h
trunk/pango/pangocairo-atsuifont.c
trunk/pango/pangocairo-fontmap.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Mon Apr 21 19:50:21 2008
@@ -320,7 +320,7 @@
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]))
@@ -338,7 +338,7 @@
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
@@ -346,17 +346,15 @@
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
Modified: trunk/pango/pangocairo-atsui.h
==============================================================================
--- trunk/pango/pangocairo-atsui.h (original)
+++ trunk/pango/pangocairo-atsui.h Mon Apr 21 19:50:21 2008
@@ -24,11 +24,7 @@
#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
Modified: trunk/pango/pangocairo-atsuifont.c
==============================================================================
--- trunk/pango/pangocairo-atsuifont.c (original)
+++ trunk/pango/pangocairo-atsuifont.c Mon Apr 21 19:50:21 2008
@@ -78,11 +78,6 @@
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)
{
@@ -90,7 +85,7 @@
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
Modified: trunk/pango/pangocairo-fontmap.c
==============================================================================
--- trunk/pango/pangocairo-fontmap.c (original)
+++ trunk/pango/pangocairo-fontmap.c Mon Apr 21 19:50:21 2008
@@ -130,7 +130,7 @@
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]