[Mono-devel-list] MCS and today's Cairo bug.

Xavier Amado xavier at blackbloodstudios.com
Thu Oct 23 19:29:54 EDT 2003


There was a change in Cairo's cairo_select_font function, this entry is
the relevant one.

2003-10-23  Graydon Hoare <graydon at redhat.com>
                                                                                
        * src/cairo_ft_font.c: New file.
        * src/Makefile.am: Add cairo_ft_font.c
        * src/cairo.c:
        * src/cairo.h:
        * src/cairo_font.c:
        * src/cairo_gstate.c:
        * src/cairo_xlib_surface.c:
        * src/cairoint.h: Change to virtual font interface.

Because of this, mcs fails to compile on graphics.c
The fix to this is simple, we replace the previous call to
cairo_select_font inside _init_graphics, line 38 with:

cairo_select_font (graphics->ct, "serif:12", CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);

The whole deal is the addition of the font slant and weight. Other
values are available but  I thought the normals where ok for that?

Regards,
                                                                        
________________________________________________________________________
                             Xavier Amado (xavier at blackbloodstudios.com)
                                                 CTO Black Blood Studios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031023/f7778d46/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031023/f7778d46/attachment.bin 


More information about the Mono-devel-list mailing list