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

Save fnt

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:28, 13 November 2007 (edit)
Sandman (Talk | contribs)
(New page: Category:functions Category:fonts == Definition == '''INT''' save_fnt ( <'''INT''' fontID> , <'''STRING''' filename> ) Saves a font as a file. A font is usually with the exte...)
← Previous diff
Revision as of 13:30, 13 November 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 34: Line 34:
| Insufficient memory || - There is insufficient memory available. This error doesn't occur often. | Insufficient memory || - There is insufficient memory available. This error doesn't occur often.
|} |}
 +
 +{{Funcbox
 +| category=fonts
 +}}

Revision as of 13:30, 13 November 2007


Contents

Definition

INT save_fnt ( <INT fontID> , <STRING filename> )

Saves a font as a file. A font is usually with the extension ".fnt".

If the specified filename contains no extension, ".fnt" is added to it.

Parameters

INT fontID - The fontID of the font to be saved.
STRING filename - The name of the font file to be saved, including a possible path.

Returns

INT : Successrate

false - Filename could not be obtained from the specified string (doesn't happen usually) or one of the errors.
true - Font successfully saved.

Errors

Invalid fontID - The specified fontID was invalid.
Unable to create file - The file could not be created.
Font corrupt - The font trying to be saved is corrupt.
Insufficient memory - There is insufficient memory available. This error doesn't occur often.


fonts Functions
Get_glyph() • Load_fnt() • New_fnt() • Save_fnt() • Set_glyph() •
Personal tools