[ENH] Better TrueType fonts

Ned Konz ned at bike-nomad.com
Mon Apr 2 02:04:48 UTC 2001


It's not yet done. But it does work, sort of, for black text.

See the attached .gif file for a sample of what this can do
(the top, black sample) versus what it should look like (the bottom,
magenta sample).

Perhaps someone could make it work in color (needs a proper colormap
between the 8-bit greyscale source form and the destination).

Also, how would you keep the italic characters from getting cut off at
the
upper right of their bounding boxes (and still have decent looking
kerning)?

from preamble:

"Change Set:		TTFInstallFix-nk
Date:			1 April 2001
Author:			Ned Konz

This allows specification of form depth when converting TrueType fonts
to StrikeFonts.

This will work to get TrueType fonts displayed fairly well,
but only in black, so far.

Other problems include character forms cut off at edge of bounding boxes
(noticeable with italic fonts).

TTFontReader
		installTTF: '/usr/share/fonts/truetype/verdana.ttf' 
		asTextStyle: #Verdana
		sizes: #(24 60)
		depth: 8

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TTFInstallFix-nk.cs.gz
Type: application/octet-stream
Size: 1853 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010401/e60b4032/TTFInstallFix-nk.cs.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.gif
Type: image/gif
Size: 2856 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010401/e60b4032/sample.gif


More information about the Squeak-dev mailing list