[cairo] cairo 0.5.1-head breaks mingw32 compile

Bob Jamison rjamison at titan.com
Thu Jul 21 08:44:10 PDT 2005


J. Ali Harlow wrote:

> Mingw32 is no longer able to compile cairo 0.5.1-head because it  
> doesn't define TT_PRIM_CSPLINE. Trivial fix is to conditionally 
> define  this at the top of the file in which it is used:
>
> diff -Naurd ../cvs/cairo/src/cairo-win32-font.c ./src/cairo-win32- font.c
> --- ../cvs/cairo/src/cairo-win32-font.c 2005-07-16 07:57:33.000000000  
> +0100
> +++ ./src/cairo-win32-font.c    2005-07-16 09:31:11.604925616 +0100
> @@ -46,6 +46,9 @@
> #ifndef CLEARTYPE_QUALITY
> #define CLEARTYPE_QUALITY 5
> #endif
> +#ifndef TT_PRIM_CSPLINE
> +#define TT_PRIM_CSPLINE 3
> +#endif
>
> const cairo_scaled_font_backend_t cairo_win32_scaled_font_backend;
>
I posted this bug (TT_PRIM_CSPLINE) on Mingw/w32api's tracker the other day,
and I believe that dannysmith has already applied the little patch to 
wingdi.h
in CVS.


On another note, has anyone else had any problems in the last few days
with clipping on Win32?  I'm not getting any output on clipped areas at
the moment, where it worked before.   Xlib is fine.  Maybe I have
the flags in cairo-features.h or config.h wrong.  Who knows?  ;-)



Bob Jamison
(ishmal)







More information about the cairo mailing list