aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/font.h
diff options
context:
space:
mode:
authorKamil Zbróg2013-11-04 11:40:22 +0000
committerKamil Zbróg2013-11-04 11:40:22 +0000
commit85694ec1f5793eb4025f4153ef4bf71d3769d699 (patch)
treec93fab58eb2f52eca244895a9867d28134dbd7f5 /engines/prince/font.h
parent026390145b0e947be7cccf3d9ba329eb2270a2ed (diff)
parent9dc35033f523c9c694f24e15ed45ba6194786a25 (diff)
downloadscummvm-rg350-85694ec1f5793eb4025f4153ef4bf71d3769d699.tar.gz
scummvm-rg350-85694ec1f5793eb4025f4153ef4bf71d3769d699.tar.bz2
scummvm-rg350-85694ec1f5793eb4025f4153ef4bf71d3769d699.zip
Merge remote-tracking branch 'own/prince' into prince-malik
Conflicts: engines/prince/debugger.cpp engines/prince/debugger.h engines/prince/detection.cpp engines/prince/font.cpp engines/prince/graphics.cpp engines/prince/prince.cpp engines/prince/prince.h engines/prince/script.cpp engines/prince/script.h
Diffstat (limited to 'engines/prince/font.h')
-rw-r--r--engines/prince/font.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/engines/prince/font.h b/engines/prince/font.h
index 54e6b6b0a5..1afafa3be3 100644
--- a/engines/prince/font.h
+++ b/engines/prince/font.h
@@ -25,21 +25,21 @@
#include "graphics/font.h"
namespace Graphics {
- struct Surface;
+ struct Surface;
}
namespace Common {
- class String;
+ class String;
}
namespace Prince {
class Font : public Graphics::Font {
public:
- Font();
- virtual ~Font();
+ Font();
+ virtual ~Font();
- bool load(Common::SeekableReadStream &stream);
+ bool load(Common::SeekableReadStream &stream);
virtual int getFontHeight() const override;
@@ -49,18 +49,22 @@ public:
virtual void drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 color) const override;
+ virtual int getKerningOffset(byte left, byte right) const { return -2; }
+
private:
- struct ChrData {
- byte * _pixels;
- byte _width;
- byte _height;
- };
+ struct ChrData {
+ byte *_pixels;
+ byte _width;
+ byte _height;
+ };
- ChrData getChrData(byte chr) const;
+ ChrData getChrData(byte chr) const;
- byte * _fontData;
+ byte *_fontData;
};
}
#endif
+
+/* vim: set tabstop=4 expandtab!: */