This command is useful for programmers that wish to include a font in a program. This command will read in a particular point size of most any font and then proceed to create a GeoWrite file containing the needed .byte statements that can be assembled with GEOASSEMBLER. This way, you can have the font contained right within your program, instead of having to load the font from disk. Here is an example:
sfont 12 Roma
This will create the source code for the 12-point Roma font. The source code is created on the currently active drive. The font does not need to be located on the same drive, since sfont will search all the drives for the font.
The resulting GeoWrite file that is created will be given a filename that represents the font and the desired point size. The above example would create a file called 'Roma12s'. If the font's name is longer than 9 characters, then the name would be truncated so that with the point size and an 's' added would keep the length limited to 12 characters. This is so that when you assemble the file, there is room for '.rel' to be added to the name.
Of course, you could also cut the byte statements out as text scraps and place them into any of your other files. But the easiest method is to just add this filename to your .lnk file.
One other thing that you will need to do before you assemble the font source code is to add the label you wish to have at the start of the code plus some additional imaginary labels. Since the file contains many byte statements, GEOASSEMBLER will give you errors if it doesn't find a label every so often. So, go through the code and about every 20 or thirty lines, add a label. That is the easy part, sfont has already taken care of the tough part for you, eliminating a great deal of typing while you viewing the font in a sector editor.
If you need to find out the point sizes that are contained in a font file, just enter sfont followed by the font name, leaving out any point size in the parameter. This will cause sfont to display all the available point sizes contained in the font. Here is an example:
sfont Roma
This will display the point sizes contained in the Roma font.
That's all there is to it. It's a simple, yet very useful command.