| | 2 | Reads a font file into memory. |
| | 3 | |
| | 4 | {{{ |
| | 5 | int ReadFont(int nFont, const char* pszFilename); |
| | 6 | |
| | 7 | int ReadFont(int nFont, const std::string& strFilename); |
| | 8 | }}} |
| | 9 | |
| | 10 | == Parameters == |
| | 11 | |
| | 12 | * pszFilename - character array pointer to the path and filename of the font such as "/mnt/nand/fonts/Font788_8x2.fnt" |
| | 13 | * strFilename - const string reference to the path and filename of the font. |
| | 14 | |
| | 15 | == Return Value == |
| | 16 | |
| | 17 | * Returns 1 if successful 0 if file not found or some other problem with the file. |
| | 18 | |
| | 19 | == Remarks == |
| | 20 | |
| | 21 | |
| | 22 | == Examples == |
| | 23 | |
| | 24 | {{{ |
| | 25 | ReadFont(11, "/mnt/nand/fonts/Font788_8x2.fnt"); |
| | 26 | }}} |
| | 27 | |
| | 28 | {{{ |
| | 29 | string strFontFile = "/mnt/nand/fonts/Font788_8x2.fnt"; |
| | 30 | ReadFont(11, strFontFile); |
| | 31 | }}} |
| | 32 | |
| | 33 | == See Also == |
| | 34 | |
| | 35 | * LocateLCD |
| | 36 | * DisplayText |