From 68b60be0d1da84aa670d29b87b26ab3e3db51b69 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 15 Oct 2018 12:49:54 +0800 Subject: =?UTF-8?q?*=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Font/Font.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/libjin/Graphics/Font/Font.h') 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 -- cgit v1.1-26-g67d0