|
SaveFont | |
SaveFont Filename$, [FontIndex] | |
Parameters: Filename$ = The filename and path of the font to be saved. [FontIndex] = The index of the font you wish to save, this field is optional. |
|
Returns: NONE | |
The SaveFont command makes PlayBASIC save the selected font to disc. The font will saved out in the PlayBASIC's custom format, known as CRF. The FontIndex parameter is optional, if excluded the command with save the current font (See GetCurrentFont) The save process includes the ability to convert the selected font to CRF format on demand, allowing you to save CRF versions of Type Type or Bitmap fonts, without have to convert the font to CRF first. FACTS: * SaveFont saves fonts in PlayBASIC custom format known as CRF. These fonts store pixel data in 32bit form. Mini Tutorial: This example uses the optional FONTS library to load a bitmap image containing a series of hand drawn characters into memory. Once loaded, it then saves it to your "C:\" drive (Note: The save might fail, if you don't have write access to that device) and renders some text in this newly save font. You'll notice that the font can be coloured via the INK command.
This example outputs. Here's the bitmap font image, the test program uses to grab the font letters from. |
Related Info: | CreateBitmapFont | LoadFont | LoadNewFont | MakeBitmapFont : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |