[cairo] patches for configure errors under MinGW, OS X deprecation warnings

Ryan Schmidt cairo-2015 at ryandesign.com
Sun Feb 8 02:17:08 PST 2015

On Feb 5, 2015, at 10:42 AM, Andrea Canciani wrote:

>> 2) the following patch fixes runtime warnings about CGFontGetGlyphPath deprecation under OS X 10.10 (Yosemite):
>>    (discussion at http://comments.gmane.org/gmane.comp.lib.cairo/24875) 
> I pushed the patch available in the associated bugreport to master:
> commit 70cc8f250b5669e757b4f044571ba0f71e3dea9e
> Author: Andrea Canciani <ranma42 at gmail.com>
> Date:   Tue Dec 9 16:13:00 2014 +0100
>     quartz: Remove call to obsolete CGFontGetGlyphPath
>     CGFontGetGlyphPath was not public and is not available anymore on
>     modern OSX/iOS systems. The same functionality is available through
>     the CoreText API since OSX 10.5.
>     Based on a patch by Simon Cozens.
>     Fixes https://bugs.freedesktop.org/show_bug.cgi?id=84324

With this change, cairo now cannot be built on OS X 10.4 with the --enable-quartz-font flag, whereas this worked before:

:info:build cairo-quartz-font.c: In function '_cairo_quartz_init_glyph_path':
:info:build cairo-quartz-font.c:548: error: 'CTFontRef' undeclared (first use in this function)
:info:build cairo-quartz-font.c:548: error: (Each undeclared identifier is reported only once
:info:build cairo-quartz-font.c:548: error: for each function it appears in.)
:info:build cairo-quartz-font.c:548: error: expected ';' before 'ctFont'
:info:build cairo-quartz-font.c:563: error: 'ctFont' undeclared (first use in this function)
:info:build cairo-quartz-font.c:563: error: implicit declaration of function 'CTFontCreateWithGraphicsFont'
:info:build cairo-quartz-font.c:564: error: implicit declaration of function 'CTFontCreatePathForGlyph'
:info:build cairo-quartz-font.c:564: warning: assignment makes pointer from integer without a cast
:info:build make[3]: *** [cairo-quartz-font.lo] Error 1

Would it be possible to keep the previous code for OS X 10.4 and use the new code on OS X 10.5 and newer?

More information about the cairo mailing list