[cairo] fix pango 1.20.1 wrt quartz

Bogdan Nicula bogdanni at hotmail.com
Wed Apr 9 10:00:48 PDT 2008

>> 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.

I'm not sure how this deprecation business works, but otherwise I get a symbol lookup error from the dynamic linker:

dyld: lazy symbol binding failed: Symbol not found: _cairo_atsui_font_face_create_for_atsu_font_id_REPLACED_BY_cairo_quartz_font_face_create_for_atsu_font_id
  Referenced from: /Users/bogdan/local/gg/lib/libpangocairo-1.0.0.dylib
  Expected in: dynamic lookup

The function gets linked into pango as the above, while cairo exports it by the normal name:

nm /Users/bogdan/local/gg/lib/libcairo.2.17.2.dylib | grep _cairo_atsui_font_face_create_for_atsu_font_id
000585c0 T _cairo_atsui_font_face_create_for_atsu_font_id

That was the reason for the above change.


Connect to the next generation of MSN Messenger 

More information about the cairo mailing list