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 int getFontHeight()
const override {
return _data._fRectHeight + getFontLeading(); }
176 int getCharWidth(uint32 chr)
const override;
177 void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const override;
181 int getKerningOffset(uint32 left, uint32 right)
const override;
183 int getFontSize()
const {
return _data._size; }
191 const MacGlyph *findGlyph(uint32 c)
const;
Definition: managed_surface.h:51
int getFontAscent() const override
Definition: macfont.h:172
Definition: macfont.h:115
int getFontDescent() const override
Definition: macfont.h:173
Definition: macfont.h:165
Definition: formatinfo.h:28
int getFontHeight() const override
Definition: macfont.h:171
int getMaxCharWidth() const override
Definition: macfont.h:175
int getFontLeading() const override
Definition: macfont.h:174
Definition: macfont.h:133