Ned Konz wrote:
On Saturday 24 June 2006 22:25, Karl Ramberg wrote:
Ned Konz wrote:
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)?
How does the fonts work on different background colors ? I think the form over rule must be modified. The background color of the font form must act as transparent.
It's using Form paint, just like the regular fonts. So you get shades of grey around the edges.
This is why I say that a colormap needs to be used:
8-bit Font destination
0 (transparent) transparent 40 (black) opaque foreground color other shades of grey foreground color with varying alpha
Ok. But I don't understand why the italic kerning cuts off the fonts... Are font forms placed after eachother based on baseline kerning and assuming the glyphs don't overlap verticaly? And italic does overlap verticaly so the font forms must be copied in front of eachother to not cut the glyphs ?
Karl
On Monday 02 April 2001 11:00, Karl Ramberg wrote:
Ned Konz wrote:
On Saturday 24 June 2006 22:25, Karl Ramberg wrote:
Ned Konz wrote:
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)?
How does the fonts work on different background colors ? I think the form over rule must be modified. The background color of the font form must act as transparent.
It does, it's just that the edges don't look right.
It's using Form paint, just like the regular fonts. So you get shades of grey around the edges.
This is why I say that a colormap needs to be used:
8-bit Font destination
0 (transparent) transparent 40 (black) opaque foreground color other shades of grey foreground color with varying alpha
Ok. But I don't understand why the italic kerning cuts off the fonts... Are font forms placed after eachother based on baseline kerning and assuming the glyphs don't overlap verticaly? And italic does overlap verticaly so the font forms must be copied in front of eachother to not cut the glyphs ?
I think that's the problem. The bounding box is derived from the horizontal escapement, which of course is wrong. I think I even saw a comment somewhere in the code about that being wrong.
On Monday 02 April 2001 11:00, Karl Ramberg wrote:
And italic does overlap verticaly so the font forms must be copied in front of each other to not cut the glyphs ?
Looking at it closer, it looks like the TrueType font is being read in incorrectly. The enclosed GIF shows the actual FormSetFont form contents, and it shows the truncation already. I'll look for where this is happening (probably in the TTFontReader code).
Also note that Henrik Gendenryd made the FreeType plugin and lots of other stuff to support better fonts. http://minnow.cc.gatech.edu/squeak/1225 Karl
Ned Konz wrote:
On Monday 02 April 2001 11:00, Karl Ramberg wrote:
And italic does overlap verticaly so the font forms must be copied in front of each other to not cut the glyphs ?
Looking at it closer, it looks like the TrueType font is being read in incorrectly. The enclosed GIF shows the actual FormSetFont form contents, and it shows the truncation already. I'll look for where this is happening (probably in the TTFontReader code).
-- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com
Name: Squeak.4.gif
Squeak.4.gif Type: GIF Image (image/gif) Encoding: base64
squeak-dev@lists.squeakfoundation.org