Talk:GetSystemFont
From Spheriki
This is a copy of the old page for easy accessibility.
GetSystemFont()
- this function is used to recall the system font, that being the one called system.rfn in sphere's system folder. You can use this as a default option for any videogame you make with sphere. But I recommend that you use the import windows font option in the drop down menu of the IDE.
Contents |
Uses
This is used to recall the system font
GetSystemFont();
How it's used
Here it can be used as a variable called font.
var font = GetSystemFont(); font.drawText(0,0,"Hello World");
Or it can be used "straight out of the box"
GetSystemFont().drawText(0,0,"Hello World");
Why it's used
It's used to:
- Call the default font to use.
- View a string of characters.
- Be a default
- If you don't import a font file or make your own font.
The back way in to have a font.
A tip
If you don't like the standard system font you can always open the system folder then replace the font file with one you made or imported. (Doing this is heavily deprecated, as standard practise does not involve providing the system folder with your game when you release it)
Then again you can always recall that font file from your project folder. (This is how it should be done)
--Feek 21:56, 2 July 2006 (PDT) modified Rhuan 00:11, 5 July 2006 BST