Font rendering (was Re: [squeak-dev] Re: Statistics on merging Cuis with 3.10 on Morph hierarchy)

Bert Freudenberg bert at freudenbergs.de
Sun Apr 26 11:20:37 UTC 2009


On 25.04.2009, at 18:22, John M McIntosh wrote:

>
> On 25-Apr-09, at 2:02 AM, Michael Rueger wrote:
>
>> - fractional position rendering (rendering an anti-aliased glyph onto
>> a fractional pixel position)
>>
>> Michael
>>
>
> Michael glosses over the fun details of do you round, or truncate,  
> and as you accumulate float rounding errors what happens.
> So if you typed    
> llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
> Er *maybe* somewhere the median visual density of one of those 'l'  
> would be placed a pixel to the left or right of where it should have  
> been.


You both are seriously overestimating the sophistication of Squeak's  
standard text rendering ;)

It all derives from bitmap fonts, each glyph basically is a Form, and  
they are simply blitted one after the other onto the screen. No sub- 
pixel positioning, no kerning. The only thing that's different for  
TrueType fonts is how the forms are generated.

- Bert -





More information about the Squeak-dev mailing list