[cairo] Division by zero in cairo-ft-font.c
Keith Packard
keithp at keithp.com
Sat Jul 23 08:32:31 PDT 2005
On Fri, 2005-07-22 at 18:24 -0400, Owen Taylor wrote:
> Turns out that loading a size zero font was causing badness:
>
> http://bugzilla.gnome.org/show_bug.cgi?id=311299
>
> Absolutley huge (700M+) surfaces were being created for glyphs,
> etc.
>
> I put in a pretty quick fix, attached below. I'm not absolutely
> sure that there aren't still problems with near zero fonts, but
> being late on a Friday, I just wanted to get something in that
> would stop the problems.
Your fix looks pretty reasonable. We might treat 'really small' fonts as
if they were zero as well. As scaled fonts are immutable, we'd do that
when creating the font though.
-keith
-------------- 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.freedesktop.org/archives/cairo/attachments/20050723/01d9b77b/attachment.pgp
More information about the cairo
mailing list