[cairo] Who broke my user fonts?

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 23 11:04:50 PST 2008


On Tue, 2008-12-23 at 13:52 -0500, Behdad Esfahbod wrote:
> Chris Wilson wrote:
> > On Tue, 2008-12-23 at 01:22 -0500, Behdad Esfahbod wrote:
> >> I'm getting non-tight bounding boxes in user fonts where I used to get tight
> >> ones.  Who broke them? :)
> > 
> > Test case? :-)
> 
> Checkout master, run:
> 
>   util/cairo-view '@cairo:serif' 0 0 48
> 
> The green box should touch the ink on each side, but it doesn't at all.
> Remove the 'serif' from the above and it works.  What 'serif' does currently
> is that it chooses MITER joins and SQUARE caps, instead of ROUND.
> 
> Humm, seems like I didn't pay close attention to this case before.  So, maybe
> the brokenness is not new.

This does sound like fallout from the switch (in current git) to using
path extents + maximum pen distance from path. This will be fixed with
stroke-to-path.
-- 
Chris



More information about the cairo mailing list