On Feb 6, 2004, at 12:00 PM, squeakland-request@squeakland.org wrote:
Is it possible to add truetype fonts to the Squeakland.org (OSX latest) version of Squeak?
Hello,
Is it possible to add truetype fonts to the Squeakland.org (OSX latest) version of Squeak?
I don't know where the TrueType font are physically located on OS X, but I've got an impression that they are store in some kind of 'cabinet' file and Squeak cannot access to those indivisual file, right? Squeak's TrueType reader only handles individual .ttf files, so it may not easy to do it.
If you're using Windows, or have a copy of a .ttf file (I'm not suggesting to copy license-protected one^^;) read the following instruction.
----------- * First, unzip the attachment and drag the resulting 'TrueTypeTextStyle6-land.cs' onto the Squeak Window. (If Squeak is running in full-screen mode, press 'Browser Reentry' button first.) A window in Squeak will show up.
* Then, do a right-button click in the window, or if you're using one-button mouse, click on the little button above the scroll-up button in the scroll bar of the window. A menu will shop up.
* Choose the fourth item 'file into new change set' from the menu. Then, close the window.
* Press Alt-shift-w or Command-shift-w. A 'World' menu will show up. Choose 'open...' item at the seventh spot. Another menu will show up.
* Choose the 'file list' item at fourth spot. A window will show up.
* Navigate to the '.ttf' file you're interested in by the top-left tree pane and select the file in the top-right pane.
* Right-click on the top-right pane or press the little menu button of the top-right pane. A menu will show up.
* Choose 'file into new change set'. Then,
you're done! Bring up the halos of any text and you should be able to choose the font from light-green style halo. (You might want to save the image here.)
But, again, this is a horrible hack, and you'll lose the ability to share the project you make with the font. Hopefully, in the next version of Squeakland image, things should be a bit easier.
Hope this helps,
-- Yoshiki
On 20 Feb 2004, at 08:22, Yoshiki Ohshima wrote:
Is it possible to add truetype fonts to the Squeakland.org (OSX latest) version of Squeak?
I don't know where the TrueType font are physically located on OS X, but I've got an impression that they are store in some kind of 'cabinet' file and Squeak cannot access to those indivisual file, right?
There are several "official" sources of TTFs on OSX:
/Library/Fonts and/or /System/Library/Fonts may contain a couple of (insignificant) TT fonts.
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/ lib/fonts contains a set of proportional and monospace Lucida TTFs.
If you have Apple's X11 installed on your machine then check under /usr/X11R6/lib/X11/fonts/TTF too. (These may or may not have come with freetype2 which, I think, is not part of the standard Apple X11 distribution; I vaguely remember having to install it myself. Your kilometrage, if using Fink/XDarwin, may vary.)
Cheers, Ian
squeakland@lists.squeakfoundation.org