25 #ifndef GRAPHICS_AURORA_NFTRFONT_H 26 #define GRAPHICS_AURORA_NFTRFONT_H 115 void drawGlyphs(
const std::vector<Glyph> &glyphs);
127 #endif // GRAPHICS_AURORA_NFTRFONT_H void readHeader(Common::SeekableSubReadStreamEndian &nftr, Header &header)
void readCharMaps(Common::SeekableSubReadStreamEndian &nftr, Header &header, std::vector< Glyph > &glyphs)
void drawGlyphs(const std::vector< Glyph > &glyphs)
This is a wrapper around SeekableSubReadStream, but it adds non-endian read methods whose endianness ...
float getWidth(uint32 c) const
Return the width of a character.
A class holding an UTF-8 string.
Common::SeekableReadStream * data
NFTRFont(Common::SeekableReadStream *nftr, bool invertPalette=false)
void readGlyphs(Common::SeekableSubReadStreamEndian &nftr, Header &header, std::vector< Glyph > &glyphs)
float getHeight() const
Return the height of a character.
void draw(uint32 c) const
Draw this character.
A handle to an Aurora texture.
std::map< uint32, Char > _chars
void drawGlyph(const Glyph &glyph, Surface &surface, uint32 x, uint32 y)
void readWidths(Common::SeekableSubReadStreamEndian &nftr, Header &header, std::vector< Glyph > &glyphs)
Low-level type definitions to handle fixed width types portably.
void readInfo(Common::SeekableSubReadStreamEndian &nftr, Header &header)
void load(Common::SeekableSubReadStreamEndian &nftr)
Base class for Nitro (Nintendo DS) files.
static uint32 convertToUTF32(uint16 codePoint, uint8 encoding)
Interface for a seekable & readable data stream.