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

Andrea Canciani ranma42 at gmail.com
Sun Feb 8 04:10:16 PST 2015


On Sun, Feb 8, 2015 at 11:17 AM, Ryan Schmidt <cairo-2015 at ryandesign.com>
wrote:

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

This is expected, in fact it is one of the issues I had pointed out on the
original patch:
http://permalink.gmane.org/gmane.comp.lib.cairo/24905

(I also sketched an alternative patch that should/might also work on 10.4)


>
>
> :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?
>

It is possible to do that, but testing on 10.4 is becoming pretty hard (I
have no such environment and I'm afraid that Mozilla is not testing anymore
on such an old OS). In the bugreport the agreement seemed to be that 10.4
is too old to be supported. Its removal would also allow for a significant
cleanup, as 10.4 is missing blend operators.

I am unsure what the best course is... Chris, Bryce, what are your opinions
on this?

Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150208/da8fa859/attachment.html>


More information about the cairo mailing list