Fnt save

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT fnt_save ( <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.

The previous name save_fnt() is deprecated.

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.


Mod_map
Constants
B'"`UNIQ--nowiki-00000003-QINU`"'CLEARCHARSET'"`UNIQ--nowiki-00000003-QINU`"'CP850CHARSET'"`UNIQ--nowiki-00000003-QINU`"'ISO8859G'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'SPEEDG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPSG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'XG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'YG'"`UNIQ--nowiki-00000003-QINU`"'DEPTHG'"`UNIQ--nowiki-00000003-QINU`"'FRAMESG'"`UNIQ--nowiki-00000003-QINU`"'HEIGHTG'"`UNIQ--nowiki-00000003-QINU`"'PITCHG'"`UNIQ--nowiki-00000003-QINU`"'WIDEG'"`UNIQ--nowiki-00000003-QINU`"'WIDTHG'"`UNIQ--nowiki-00000003-QINU`"'X'"`UNIQ--nowiki-00000003-QINU`"'CENTERG'"`UNIQ--nowiki-00000003-QINU`"'Y'"`UNIQ--nowiki-00000003-QINU`"'CENTERNFB'"`UNIQ--nowiki-00000003-QINU`"'FIXEDWIDTHNFB'"`UNIQ--nowiki-00000003-QINU`"'VARIABLEWIDTH
Functions Bdfload()Centerset()Colorfind()Colorsget()Colorsset()Fade()Fadeoff()Fadeon()Fntload()Fntnew()Fntsave()Fntunload()Fpgadd()Fpgdel()Fpgexists()Fpgload()Fpgnew()Fpgsave()Fpgunload()Getpixel()Glyphget()Glyphset()Graphicinfo()Graphicset()Mapblockcopy()Mapbuffer()Mapclear()Mapclone()Mapdel()Mapexists()Mapgetpixel()Mapinfo()Mapinfoget()Mapinfoset()Mapload()Mapname()Mapnew()Mapput()Mapputpixel()Mapsave()Mapsetname()Mapunload()Mapxput()Mapxputnp()Palclone()Paldel()Palget()Palload()Palmapassign()Palmapgetid()Palmapremove()Palnew()Palrefresh()Palsave()Palset()Palunload()Paletteconvert()Paletteroll()Pcxload()Pngload()Pngsave()Pointget()Pointset()Putpixel()Rgb()Rgbget()Rgba()Rgbaget()