[cairo] fix pango 1.20.1 wrt quartz

Behdad Esfahbod behdad at behdad.org
Wed Apr 9 07:25:14 PDT 2008


On Wed, 2008-04-09 at 08:37 +0200, Bogdan Nicula wrote:
> @@ -25,7 +25,7 @@
>  #include "pangoatsui-private.h"
>  #include <pango/pangocairo.h>
>  #ifdef CAIRO_HAS_QUARTZ_FONT
> -#include <cairo-quartz-font.h>
> +#include <cairo-quartz.h>
>  #else
>  #include <cairo-atsui.h>
>  #endif

Ah right...

> diff -ur orig/pangocairo-atsuifont.c new/pangocairo-atsuifont.c
> --- orig/pangocairo-atsuifont.c 2008-04-09 08:25:36.000000000 +0200
> +++ new/pangocairo-atsuifont.c  2008-04-09 08:20:02.000000000 +0200
> @@ -89,7 +89,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);
>  }

Are you sure this one is needed?  The old symbol is still included in
the cairo .so and I added prototype for it to Pango.  Should work.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list