aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Font/Font.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/Font/Font.h')
-rw-r--r--src/libjin/Graphics/Font/Font.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libjin/Graphics/Font/Font.h b/src/libjin/Graphics/Font/Font.h
new file mode 100644
index 0000000..424c324
--- /dev/null
+++ b/src/libjin/Graphics/Font/Font.h
@@ -0,0 +1,31 @@
+#ifndef __LIBJIN_FONT_H
+#define __LIBJIN_FONT_H
+#include <vector>
+#include "Text.h"
+
+namespace jin
+{
+namespace graphics
+{
+
+ struct Page;
+
+ class Font
+ {
+ public:
+ Font() {}
+ 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 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;
+
+ };
+
+} // graphics
+} // jin
+
+#endif \ No newline at end of file