diff options
Diffstat (limited to 'src/libjin/Graphics/Font/Font.h')
-rw-r--r-- | src/libjin/Graphics/Font/Font.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libjin/Graphics/Font/Font.h b/src/libjin/Graphics/Font/Font.h index 424c324..fcc559c 100644 --- a/src/libjin/Graphics/Font/Font.h +++ b/src/libjin/Graphics/Font/Font.h @@ -13,7 +13,10 @@ namespace graphics class Font { public: - Font() {} + Font(unsigned fontsize) + : fontSize(fontsize) + { + } virtual ~Font() {}; virtual Page* typeset(const Text& text, int lineheight, int spacing = 0) = 0; @@ -23,6 +26,11 @@ namespace graphics virtual void print(const Content& text, int x, int y, int lineheight, int spacing = 0) = 0; virtual void print(const Text& text, int x, int y, int lineheight, int spacing = 0) = 0; + inline unsigned getFontSize() { return fontSize; }; + + protected: + unsigned fontSize; + }; } // graphics |