25 #ifndef GRAPHICS_TTF_H 26 #define GRAPHICS_TTF_H 29 #include FT_FREETYPE_H 74 #endif // GRAPHICS_TTF_H
bool hasChar(uint32 ch) const
Does the font have the specified character?
A simple scoped smart pointer template.
int getMaxWidth() const
Return the max width of a character in pixels.
int getCharWidth(uint32 ch) const
Return the width of a specific character in pixels.
Low-level type definitions to handle fixed width types portably.
void getFaceMetrics(int &advance, int &yOffset, int &xMin) const
Basic reading stream interfaces.
Common::ScopedArray< byte > _fileBuffer
TTFRenderer(Common::SeekableReadStream &ttfFile, int height)
Create a TTF renderer with this TTF in the specified line height in pixels.
int getHeight() const
Return the height of a character in pixels.
Interface for a seekable & readable data stream.
void drawCharacter(uint32 ch, Surface &surface, int x, int y)
Draw a specific character onto a BGRA surface.