wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/ReadFont

Version 2 (modified by Don Wilson, 14 years ago) ( diff )

--

ReadFont

Reads a font file into memory.

int ReadFont(int nFont, const char* pszFilename);

int ReadFont(int nFont, const std::string& strFilename);

Parameters

  • pszFilename - character array pointer to the path and filename of the font such as "/mnt/nand/fonts/Font788_8x2.fnt"
  • strFilename - const string reference to the path and filename of the font.

Return Value

  • Returns 1 if successful 0 if file not found or some other problem with the file.

Remarks

Examples

ReadFont(11, "/mnt/nand/fonts/Font788_8x2.fnt");
string strFontFile = "/mnt/nand/fonts/Font788_8x2.fnt";
ReadFont(11, strFontFile);

See Also

Note: See TracWiki for help on using the wiki.