links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
How to create new text fonts
Last updated at 4:18 pm UTC on 21 October 2006


You want to create your own font.


Title Font and caret questions (Mac)
Author Dan Ingalls
Date: Wed, 3 Feb 1999 10:57:20 -0800
From: Dan Ingalls
Subject: Re: Font and caret questions (Mac)

David Cramer wrote...
Has there been any change in the way to make use of more Macintosh fonts in Squeak? I ran across some fairly old instructions in the mailing list archives, but in following the steps I encountered an error suggesting to me that I'm missing something in installing new fonts.

I don't think there's been much change, except that some of it has been simplified...

Find the PD program BitFont.

Run it and produce data files of the form, eg, BellissimoNN.BF.

Follow the comment in FontSet class>>convertFontsNamed:inDirectoryNamed:
to produce a FontSet (would be called "Bellissimo") from your fonts.

File out Bellissimo for future use. Note that, unlike other fileIns, this is BINARY file.


Bellissimo installAsTextStyle.

This will produce a textStyle and install it in TextConstants. Thereafter you may use
cmd-shift-K to access those fonts in an editor, and either cmd-1-5 or cmd-k to change size.

Once your textStyle is installed you may remove the class Bellissimo to save space.

- Dan