[cairo] Font size problem on Mac OS X

Peter Clifton pcjc2 at cam.ac.uk
Wed May 12 10:50:12 PDT 2010


On Wed, 2010-05-12 at 13:39 -0400, Behdad Esfahbod wrote: 
> On 05/11/2010 11:17 AM, Peter Clifton wrote:
> > Does anyone have any suggestions for correct / incorrect settings
> > recipes when building GTK / Cairo / Pango on OS X?
> 
> Not really.  I've never tested our OS X backends.  That said, there was a bug
> fix for pango recently where the pangoatsui backend confused absolute-size
> versus point-size.  That may very well be the issue here.

If it was this one (below), then it was in the 1.28.0 release the
reporter was testing with. I've got him to try git HEAD Pango, but that
didn't help.

Building against Cairo which came with OS X 10.6's X11 install fixed the
issue for him, but I suspect it might just have shunted him onto
different font back-ends.

I've asked for his config.log files to pour over.

The commit I think you're referring to:

Author: Kristian Rietveld <kris at gtk.org>  2010-03-21 20:23:56
Comimit: f4201009d192300442e76d25a83c0dab8022d0d6
Follows: 1.27.1
Precedes: 1.28.0

    Bug 611033 - Layout using ATSUI fontmap treats absolute font sizes a...
    
    pango_atsui_font_map_load_font() has been corrected to take into account
    whether the size retrieved from the given font description is absolute
    when setting this size again on best_description.
    
    _pango_cairo_atsui_font_new() has been cleaned up with regard to size
    conversion and usage.  The code now properly takes the absolute property
    into account and is more clear.


Thanks for looking,

Best wishes,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)




More information about the cairo mailing list