-
Notifications
You must be signed in to change notification settings - Fork 4
How to install a font inside Squeak and use it to display websites with Scamper
Steditor edited this page Jun 7, 2014
·
2 revisions
This guide is extracted from an article about using a different font inside Squeak for Russian support.
- Be sure to have your desired font as TrueTypeFont.
- Open the world menu through a left click and select "open", then "file list".
- Select the ttf-file. A preview is displayed which is not helpful (don't worry!) and a new button "install ttf" will appear. Click it to install the font.
- That's all!
Note: These steps will change the font for some text system-wide.
- Open the world menu through a left click and select "appearance", then "system fonts" and "default text font".
- Select the desired font and size.
- Apply your changes. Every new Scamper window will have this font for the menu, the website, ...
Run TTCFont removeStyleName: '{Fontname}'
from your workspace and enter the font name you can find in TextConstants keys
- In order to have more font sizes and better anti-aliasing, it may be necessary to convert the ttf to a bitmap format first. Squeak's standard font DejaVu Sans is a bitmap (maybe as BDF - but I'm not sure).
- A general site about fonts in Squeak may be interesting.
- A list of Unicode fonts and their glyphs is available at Wikipedia.
- A font with most of the glyphs useful for us is the GNU Unifont - it works fine with Squeak but is not very beautiful.