Mantis Issue: 0003355 - TTCFont ascent reports wrong result

John Pierce john at pierce.name
Sat Mar 25 19:55:22 UTC 2006


Hi all,

I got in trouble last time I posted a fix to this list. I'm not sure
how to post fixes, but I did make a bug report in Mantis (issue
#0003355).

The problem is TTCFont used to have an "ascent" instance variable that
the "ascent" method expects to use. The variable used to exist about
October of 2005 and no longer does, yet the method still references
it.

Thus, the "ascent" method seems to report the wrong answer and most
TTCFonts are not appropriately sized if "autofit" is enabled on the
TextMorph.

So, this fix is easy. Not sure where to post it, but just add "ascent"
to the instance variable list of TTCFont.

Regards,

John

--
It's easy to have a complicated idea. It's very very hard to have a
simple idea. -- Carver Mead



More information about the Squeak-dev mailing list