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 15:16, 22 April 2007 (edit)
Woody (Talk | contribs)

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