22 #ifndef GRAPHICS_FONTS_MACFONT_H 23 #define GRAPHICS_FONTS_MACFONT_H 25 #include "common/array.h" 26 #include "common/hashmap.h" 27 #include "common/stream.h" 28 #include "graphics/font.h" 40 int getKerningOffset(uint style, int32 left, uint32 right)
const;
41 int getGlyphWidth(uint style, uint c);
50 uint16 getFontFamilyId() {
return _ffFamID; }
68 uint16 _ffProperty[9];
106 struct StyleWidthEntry {
111 uint16 _ffNumStyleWidths;
171 virtual int getFontHeight()
const {
return _data._fRectHeight + getFontLeading(); }
176 virtual int getCharWidth(uint32 chr)
const;
177 virtual void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
181 virtual int getKerningOffset(uint32 left, uint32 right)
const;
183 int getFontSize()
const {
return _data._size; }
191 const MacGlyph *findGlyph(uint32 c)
const;
Definition: managed_surface.h:51
virtual int getFontAscent() const
Definition: macfont.h:172
virtual int getFontLeading() const
Definition: macfont.h:174
Definition: macfont.h:115
Definition: macfont.h:165
virtual int getMaxCharWidth() const
Definition: macfont.h:175
Definition: formatinfo.h:28
virtual int getFontDescent() const
Definition: macfont.h:173
virtual int getFontHeight() const
Definition: macfont.h:171
Definition: macfont.h:133