[ANN] FreeType Plus release

Andrew Tween amtween at hotmail.com
Mon May 7 10:47:33 UTC 2007


Hi Gary,
----- Original Message ----- 
From: "Gary Chambers" <gazzaguru2 at btinternet.com>
To: "'The general-purpose Squeak developers list'"
<squeak-dev at lists.squeakfoundation.org>
Sent: Friday, May 04, 2007 8:22 PM
Subject: RE: [ANN] FreeType Plus release


>Great work Andy, was going to have to go through the pain of integrating
>host OS fonts myself!

>Like Damien Pollet, however, I too have noticed a discrpenacy in point
>sizes.

>>Finally the point sizes are not consistent with the ones in Cocoa apps. An
8pt font in Squeak looks like its 10pt version in Cocoa.

>For instance, a 36pt 'BitStream Vera Sans' looks more like a 32pt
>BitStreamVeraSans (original Squeak font).
>Not sure if this is the old fonts being incorrectly sized though!

I think that the scaling for TTCFont glyphs is incorrectly calculated.
(the unitsPerEm is ignored; instead, the ascender and descender are used to
calculate the scaling factor).

I've attached a modified method which brings the size of TTCFont glyphs into
line with the FreeType glyphs. I haven't given it much testing though.

>Keep up the good work, you're making many people very happy!

Cheers,
Andy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TTCFont-computeForm.st
Type: application/octet-stream
Size: 676 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070507/e0059e43/TTCFont-computeForm.obj


More information about the Squeak-dev mailing list