Load a font from ROM to RAM. Fonts are bitmapped image files that have a single height, all ASCII characters, and a width for each character. PNGs placed in the assets folder before compilation will be automatically flashed to ROM.
- Parameters
-
| fIdx | The cnfsFileIdx_t of the font to load. The font_t is not allocated by this function |
| font | A handle to load the font to |
| spiRam | true to load to SPI RAM, false to load to normal RAM. SPI RAM is more plentiful but slower to access than normal RAM |
- Returns
- true if the font was loaded successfully false if the font failed to load and should not be used