- This wiki is out of date, use the continuation of this wiki instead
Load fnt
From FenixWiki
(Difference between revisions)
Revision as of 15:16, 22 April 2007 (edit) Woody (Talk | contribs) ← Previous diff |
Revision as of 11:27, 23 April 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
Line 2: | Line 2: | ||
[[Category:text]] | [[Category:text]] | ||
- | '''INT''' load_fnt ( <''' | + | == Definition == |
+ | '''INT''' load_fnt ( <'''STRING''' file> ) | ||
- | Loads a | + | Loads a font into memory. A font is usually with the extension ''.fnt''. |
+ | |||
+ | == Parameters == | ||
+ | {| | ||
+ | | '''STRING''' file || - The [[path]] to and filename of the font file. | ||
+ | |} | ||
+ | |||
+ | == Returns == | ||
+ | '''INT''' : [[FontID]] | ||
+ | {| | ||
+ | | -1 || - Error: file does not exist. | ||
+ | |- | ||
+ | | 0 || - Filename could not be obtained from the specified string (doesn't happen usually). | ||
+ | |- | ||
+ | | >0 || - The FontID. | ||
+ | |} | ||
+ | |||
+ | == Throws == | ||
+ | {| | ||
+ | | Format not recognized || - The format of the specified file could not be recognized. | ||
+ | |} |
Revision as of 11:27, 23 April 2007
Contents |
Definition
INT load_fnt ( <STRING file> )
Loads a font into memory. A font is usually with the extension .fnt.
Parameters
STRING file | - The path to and filename of the font file. |
Returns
INT : FontID
-1 | - Error: file does not exist. |
0 | - Filename could not be obtained from the specified string (doesn't happen usually). |
>0 | - The FontID. |
Throws
Format not recognized | - The format of the specified file could not be recognized. |