Hi! I've noticed that there aren't that many fonts available in Squeak.
I would have thought with object technology that it wouldn't be a problem to have more.
Why isn't there and how involved is this topic.
Cheers! Zeppy
This message was sent from http://australia.edu Check out the new international site at http://australia.edu/international
"zeppy" == zeppy zeppy@australia.edu writes:
zeppy> I've noticed that there aren't that many fonts available in Squeak.
Well, it's a Small Matter of Licensing.
Between the last time this was brought up and now, Bitstream released 10 fonts into the Public Source arena...
http://developers.slashdot.org/article.pl?sid=03/01/22/1932238
Maybe this will finally provide what we need.
zeppy@australia.edu wrote:
Hi! I've noticed that there aren't that many fonts available in Squeak.
Yes, our image contains Atlanta in two sizes, NewYork in four sizes, Comic Bold in five sizes andComic Plain in four sizes. As an add-on we have the really beautiful AccuFonts on all platforms. On window platforms we have more: Andreas Raab wrote a plugin that allows us to create bitmapped fonts from TrueType fonts. Recently, Yoshiki Ohshima added code that does not need a platform specific plugin to render glyphs from a TT-Font. His code works on all platforms that are equipped with TrueType-fonts, and it gives nice results.
The Squeak character display machinery does not support kerning. Therefore the use of decorative TT-fonts that require kerning does not always give the best results.
Like Smalltlak-80, Squeak uses bitmapped fonts. (an instance of class StrikeFont contains the bitmaps for all glyphs of a font in one size). The more sophisticated outline fonts were never completely brought to Squeak. We can read TTF-files and we can create unhinted glyphs, but we never added the code to execute glyph hints. Apple owns three patents on glyph hinting, so we would certainly need a licence from Apple to implement their patented algorithms in Squeak. (see www.freetype.org for details about OpenType fonts, glyph hinting and the Apple patents. The site gives even the numbers of said patents - for those who want to know all details). Hints are short programs that are written for a virtual machine that has special instructions to grid-fit glyph outlines at small sizes.(hey, Smalltalk had a virtual machine years before TrueType fonts came into use!) For some time, the Squeak developers were associated with Apple, but regrettably that company never donated glyph hinting technology to Squeak. :-(
The code from Yoshiki is platform independent and it is pure Squeak which means that you can easily modify it to extract glyphs for various scripts (like greek or cyrillic) from TT-fonts that support these scripts.
The plugin from Andreas is a good solution for Windows: It calls code that you licenced together with Windows. That code uses glyph hints and it rasterizes hinted TT-Fonts in the same quality that you know from other programs that use the same code. The use of licenced Windows software avoids licence problems but it comes at a price: It works only on Windows.
I would have thought with object technology that it wouldn't be a problem to have more.
Honestly spoken, I do not see that fonts are the best field to demonstrate the power of object technology. Well, the plugin from Andreas is a nice example of what can be done for one dedicated platform. (This remark assumes that you agree that DLLs are object technology.)
Why isn't there and how involved is this topic.
Most of us think that complete platform-independent support for TrueType or OpenType outline fonts is obstacled by licence problems. We can of course draw our own bitmapped fonts but that is time-consuming work! The page www.freetype.org gives some answers to the last question: How involved is this topic.
Greetings, Boris
This may just be cluttering the list, but Bitstream Inc. recently open sourced ten or so fonts. Of course, there may be licensing issues, but overall it looks pretty liberal. In any case here are some urls.
Press Release http://www.gnome.org/pr-bitstreamfonts.html
Here's what they look like http://store.bitstream.com/searchresults.asp?searchtext=Prima
Nothing major, but free open fonts are hard to come by. btw, I origanlly saw this in a slashdot story here
http://developers.slashdot.org/article.pl?sid=03/01/22/1932238&mode=thre...
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
The apple TrueType patents are only U.S. and British patents.
Freetype can be built to implement the patented algorithms.
On Linux, this is either editing one line (somewhat obscure) in the configuration file, or making a one line change in the source RPM and rebuilding (at least on RH 8.0, and I suspect on many other versions and distributions).
Also, the latest Freetype autohinter (that does not do the patented algorithms) does a somewhat respectable job when doing anti-aliased text. What is hard is getting decent bitmaps out without anti-aliasing, while avoiding the patents. - Jim
-- Jim Gettys Cambridge Research Laboratory HP Labs, Hewlett-Packard Company Jim.Gettys@hp.com
squeak-dev@lists.squeakfoundation.org