- This wiki is out of date, use the continuation of this wiki instead
Load fnt
From FenixWiki
(Difference between revisions)
| Revision as of 01:34, 1 May 2007 (edit) Sandman (Talk | contribs) m (→Throws - -> Errors) ← Previous diff |
Current revision (11:56, 29 February 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
| (3 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| [[Category:functions]] | [[Category:functions]] | ||
| - | [[Category: | + | [[Category:fonts]] |
| == Definition == | == Definition == | ||
| - | '''INT''' load_fnt ( <'''STRING''' | + | '''INT''' load_fnt ( <'''STRING''' filename> ) |
| - | Loads a | + | Loads a [[FNT]] file into memory as a [[font]]. A font is usually with the extension ''.fnt''. |
| == Parameters == | == Parameters == | ||
| {| | {| | ||
| - | | '''STRING''' | + | | '''STRING''' filename || - The filename of the [[FNT]] file that you wish to load (including extension and possible path). |
| |} | |} | ||
| Line 26: | Line 26: | ||
| | Format not recognized || - The format of the specified file could not be recognized. | | Format not recognized || - The format of the specified file could not be recognized. | ||
| |} | |} | ||
| + | |||
| + | {{Funcbox | ||
| + | | category=Fonts | ||
| + | }} | ||
Current revision
Contents |
[edit] Definition
INT load_fnt ( <STRING filename> )
Loads a FNT file into memory as a font. A font is usually with the extension .fnt.
[edit] Parameters
| STRING filename | - The filename of the FNT file that you wish to load (including extension and possible path). |
[edit] 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. |
[edit] Errors
| Format not recognized | - The format of the specified file could not be recognized. |
| Fonts Functions | |
| • Get_glyph() • Load_fnt() • New_fnt() • Save_fnt() • Set_glyph() • | |
