[ANN] FreeType Plus release

Gary Chambers gazzaguru2 at btinternet.com
Mon May 7 11:31:43 UTC 2007


Ar, that seems to do the trick to make things match (matches Notepad under
Windows too).

Though, probably, the glyph methods should have different names now, or take
the unitsPerEm as an
extra paramter!

-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of Andrew
Tween
Sent: 07 May 2007 11:48 am
To: The general-purpose Squeak developers list
Subject: Re: [ANN] FreeType Plus release


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





More information about the Squeak-dev mailing list