1.8 Raw fonts
As mentioned above, fontopia works with different font formats, incuding
raw fonts. Raw fonts are tricky: there is no file signature and there is not a single
file extension to identify these fonts (some have the extension .bin, but this
is not universal).
When you open a font file in fontopia, the following process happens:
- Fontopia tries to open the file as a BDF, PCF, PSF or CP font first.
- When all of the above fails, fontopia tries to open the font as a raw font.
- Fontopia checks the file size and the file name to try and guess the glyph
width and height.
- If the file name is something like ’myfont-8x12.bin’, fontopia takes this as
a hint to the glyph size (8 pixels wide and 12 pixels high).
- If the file name is not helpful, fontopia opens the font using internal
width and height defaults, which might or might not be correct.
- A red message is shown in the status bar at the bottom of the screen to alert
the user to the fact that a raw font is assumed and the file should be closed
immediately if this is not the case.