Paul McNett wrote:
> dabo Commit
> Revision 4902
> Date: 2009-01-01 17:52:54 -0800 (Thu, 01 Jan 2009)
> Author: Paul
> Trac: http://trac.dabodev.com/changeset/4902
> 
> Changed:
> U   trunk/dabo/lib/reportWriter.py
> 
> Log:
> Added 5000 points below the font's baseline, which will fix Carl's problem 
> with
> the PyCon badges. Happy New Year!
> 
> 
> Diff:
> Modified: trunk/dabo/lib/reportWriter.py
> ===================================================================
> --- trunk/dabo/lib/reportWriter.py    2009-01-01 00:18:03 UTC (rev 4901)
> +++ trunk/dabo/lib/reportWriter.py    2009-01-02 01:52:54 UTC (rev 4902)
> @@ -974,9 +974,11 @@
>                       # clip the text to the specified width and height
>                       p = c.beginPath()
>       
> -                     ## HACK! the -5, +5 thing is to keep the area below the 
> font's baseline
> -                     ## from being clipped. I've got to learn the right way 
> to handle this.
> -                     p.rect(0, -5, width, height+5)
> +                     ## HACK! the -5000 thing is to keep the area below the 
> font's baseline
> +                     ## from being clipped. I've got to learn the right way 
> to handle this, probably
> +                     ## by calculating the amount needed based on the font 
> size. But, 5000 is enough
> +                     ## for anything, and we don't need to clip anything but 
> the horizontal anyway. 
> +                     p.rect(0, -5000, width, height+5000)
>                       c.clipPath(p, stroke=stroke)
>       

*giggle*

Thanks Paul.  just tried it, and now the y in Py is all there.

Carl K




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to