diff options
Diffstat (limited to 'libjin/Graphics/Font.h')
-rw-r--r-- | libjin/Graphics/Font.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libjin/Graphics/Font.h b/libjin/Graphics/Font.h index cdf2d54..6b8cc73 100644 --- a/libjin/Graphics/Font.h +++ b/libjin/Graphics/Font.h @@ -1,5 +1,6 @@ #ifndef __LIBJIN_FONT_H #define __LIBJIN_FONT_H +#include <vector> namespace jin { @@ -8,6 +9,8 @@ namespace graphics typedef unsigned int Codepoint; + typedef std::vector<Codepoint> Sentence; + struct Page; class Font @@ -17,8 +20,8 @@ namespace graphics virtual ~Font() {}; virtual void print(const Page* page, int x, int y) = 0; - virtual void print(const std::vector<Codepoint>& text, int x, int y, int lineheight, int spacing = 0) = 0; - virtual Page* typeset(const std::vector<Codepoint>& text, int lineheight, int spacing = 0) = 0; + virtual void print(const Sentence& text, int x, int y, int lineheight, int spacing = 0) = 0; + virtual Page* typeset(const Sentence& text, int lineheight, int spacing = 0) = 0; }; |