[cairo] patches for configure errors under MinGW, OS X deprecation warnings
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>
> 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
(I also sketched an alternative patch that should/might also work on 10.4)
> :info:build cairo-quartz-font.c: In function
> :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
> :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: *** [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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo