22 #ifndef GRAPHICS_WINFONT_H 23 #define GRAPHICS_WINFONT_H 25 #include "common/str.h" 26 #include "common/path.h" 27 #include "graphics/font.h" 30 class SeekableReadStream;
70 int getCharWidth(uint32 chr)
const;
71 void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
74 int getFontSizeInPointsAtDPI(
const int dpi)
const;
83 char indexToCharacter(uint16 index)
const;
84 uint16 characterToIndex(uint32 character)
const;
103 kFontStyleItalic = 2,
104 kFontStyleUnderline = 4,
109 GlyphEntry() { bitmap = 0; charWidth = 0; offset = 0; }
110 ~GlyphEntry() {
delete[] bitmap; }
int getFontHeight() const
Definition: winfont.h:66
int getFontAscent() const
Definition: winfont.h:67
Definition: algorithm.h:29
Definition: formatinfo.h:28
int getMaxCharWidth() const
Definition: winfont.h:68