This wiki is out of date, use the continuation of this wiki instead

Load fnt

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:27, 23 April 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Current revision (11:56, 29 February 2008) (edit) (undo)
Sandman (Talk | contribs)
m
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
[[Category:functions]] [[Category:functions]]
-[[Category:text]]+[[Category:fonts]]
== Definition == == Definition ==
-'''INT''' load_fnt ( <'''STRING''' file> )+'''INT''' load_fnt ( <'''STRING''' filename> )
-Loads a font into memory. A font is usually with the extension ''.fnt''.+Loads a [[FNT]] file into memory as a [[font]]. A font is usually with the extension ''.fnt''.
== Parameters == == Parameters ==
{| {|
-| '''STRING''' file || - The [[path]] to and filename of the font file.+| '''STRING''' filename || - The filename of the [[FNT]] file that you wish to load (including extension and possible path).
|} |}
Line 22: Line 22:
|} |}
-== Throws ==+== Errors ==
{| {|
| 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() •
Personal tools