summaryrefslogtreecommitdiff
path: root/src/FbTk/FontImp.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FontImp.hh')
-rw-r--r--src/FbTk/FontImp.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/FontImp.hh b/src/FbTk/FontImp.hh
index d659377..bcea7c6 100644
--- a/src/FbTk/FontImp.hh
+++ b/src/FbTk/FontImp.hh
@@ -25,6 +25,7 @@
25#define FBTK_FONTIMP_HH 25#define FBTK_FONTIMP_HH
26 26
27#include "Color.hh" 27#include "Color.hh"
28#include "Font.hh"
28 29
29#include <X11/Xlib.h> 30#include <X11/Xlib.h>
30 31
@@ -43,13 +44,14 @@ class FontImp {
43public: 44public:
44 virtual ~FontImp() { } 45 virtual ~FontImp() { }
45 virtual bool load(const std::string &name) = 0; 46 virtual bool load(const std::string &name) = 0;
46 virtual void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const = 0; 47 virtual void drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const = 0;
47 virtual unsigned int textWidth(const char * const text, unsigned int size) const = 0; 48 virtual unsigned int textWidth(const char * const text, unsigned int size) const = 0;
49 virtual bool validOrientation(FbTk::Orientation orient) { return orient == ROT0; }
48 virtual int ascent() const = 0; 50 virtual int ascent() const = 0;
49 virtual int descent() const = 0; 51 virtual int descent() const = 0;
50 virtual unsigned int height() const = 0; 52 virtual unsigned int height() const = 0;
51 virtual bool loaded() const = 0; 53 virtual bool loaded() const = 0;
52 virtual void rotate(float angle) { } // by default, no rotate support 54 virtual void rotate(int angle) { } // by default, no rotate support
53 virtual bool utf8() const { return false; }; 55 virtual bool utf8() const { return false; };
54protected: 56protected:
55 FontImp() { } 57 FontImp() { }