Skip to content

How to install a font inside Squeak and use it to display websites with Scamper

Steditor edited this page Jun 7, 2014 · 2 revisions

Installing a font to Squeak

This guide is extracted from an article about using a different font inside Squeak for Russian support.

  1. Be sure to have your desired font as TrueTypeFont.
  2. Open the world menu through a left click and select "open", then "file list".
  3. 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.
  4. That's all!

Selecting another font for Scamper

Note: These steps will change the font for some text system-wide.

  1. Open the world menu through a left click and select "appearance", then "system fonts" and "default text font".
  2. Select the desired font and size.
  3. Apply your changes. Every new Scamper window will have this font for the menu, the website, ...

Uninstalling a font

Run TTCFont removeStyleName: '{Fontname}' from your workspace and enter the font name you can find in TextConstants keys

Notes

  • 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.