From 5534828032730762f8c1e4daf924b466fffb8be0 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 16 Oct 2018 23:09:18 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Font/Font.h | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (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 fcc559c..9ccef54 100644 --- a/src/libjin/Graphics/Font/Font.h +++ b/src/libjin/Graphics/Font/Font.h @@ -5,35 +5,35 @@ namespace jin { -namespace graphics -{ + namespace graphics + { - struct Page; + struct Page; - class Font - { - public: - Font(unsigned fontsize) - : fontSize(fontsize) - { - } - virtual ~Font() {}; + class Font + { + public: + Font(unsigned fontsize) + : fontSize(fontsize) + { + } + virtual ~Font() {}; - virtual Page* typeset(const Text& text, int lineheight, int spacing = 0) = 0; - virtual Page* typeset(const Content& text, int lineheight, int spacing = 0) = 0; + virtual Page* typeset(const Text& text, int lineheight, int spacing = 0) = 0; + virtual Page* typeset(const Content& text, int lineheight, int spacing = 0) = 0; - virtual void print(const Page* page, int x, int y) = 0; - 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; + virtual void print(const Page* page, int x, int y) = 0; + 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; }; + inline unsigned getFontSize() { return fontSize; }; - protected: - unsigned fontSize; + protected: + unsigned fontSize; - }; + }; -} // graphics + } // graphics } // jin #endif \ No newline at end of file -- cgit v1.1-26-g67d0