touchgfx::InternalFlashFont class
@class InternalFlashFont InternalFlashFont.hpp touchgfx/InternalFlashFont.hpp An InternalFlashFont has both glyph table and glyph data placed in a flash which supports random access read (i.e. not a NAND flash). An InternalFlashFont has both glyph table and glyph data placed in a flash which supports random access read (i.e. not a NAND flash) @see ConstFont
class InternalFlashFont : public ConstFont
{
public:
InternalFlashFont(const GlyphNode* list, uint16_t size, uint16_t height, uint8_t pixBelowBase, uint8_t bitsPerPixel, uint8_t maxLeft, uint8_t maxRight, const uint8_t* glyphDataInternalFlash, const KerningNode* kerningList, const Unicode::UnicodeChar fallbackChar, const Unicode::UnicodeChar ellipsisChar);
virtual const uint8_t* getPixelData(const GlyphNode* glyph) const;
virtual int8_t getKerning(Unicode::UnicodeChar prevChar, const GlyphNode* glyph) const;
private:
InternalFlashFont() : ConstFont(0, 0, 0, 0, 0, 0, 0, 0, 0) { }
const uint8_t* glyphData;
const KerningNode* kerningData;
};
Methods
getPixelData() const
@fn virtual const uint8_t* InternalFlashFont::getPixelData(const GlyphNode* glyph) const; Obtains a RAM-based pointer to the pixel data for the specified glyph. Obtains a RAM-based pointer to the pixel data for the specified glyph.
Read more...
getKerning() const
@fn virtual int8_t InternalFlashFont::getKerning(Unicode::UnicodeChar prevChar, const GlyphNode* glyph) const; Gets the kerning distance between two characters. Gets the kerning distance between two characters.
Read more...
Examples
touchgfx::InternalFlashFont is referenced by
4 libraries and example projects.
Child classes
touchgfx::InternalFlashFont