http://www.sfcompiler.co.uk/wiki/pmwiki ... sefulLinks
This version will allow you to set a range of ASCII characters to generate. When you have downloaded the executable, double click to install the plugin. From the IDE, just select PLUGIN...SWORDFISH...FONT CONVERTER
Then select OPTIONS...SET RANGE. A dialog box will be shown. Make sure it has the following entries
32 - 126, 176
This will generate the standard font characters, plus the degree symbol. Click OK, then press 'Convert'. The code will be automatically posted into the IDE.
Save as 'xArial.bas' in either the UserLibrary or wherever you source code is located.
Here is some code to display the degree symbol...
Code: Select all
// set options here !!
include "graphics.bas"
include "GLCD.bas"
include "xArial.bas"
const DegreeSym = 127
GLCD.Cls
GLCD.SetFont(Arial)
WriteAt(10,10,"10.25 ",DegreeSym,"C")
Notice when displaying the symbol, it is at 127. If you also generated a copyright symbol, it would be at 128 and so on.
This should really make displaying a degree symbol with most fonts really easy. You wont need to mess about with images etc...