summaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-30 22:53:42 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-30 22:53:42 +0100
commit1002b8640b80c0ec4ba5c242ca2873ee1fc591d5 (patch)
tree66a34e66c3a078d9a7adc4593fa057dc0d8334dc /font.h
parentda86e33dcba7d66e2e5b55efa8a7265c5d2989b9 (diff)
Drawing text (also added Liberation font with license)
Diffstat (limited to 'font.h')
-rw-r--r--font.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/font.h b/font.h
new file mode 100644
index 0000000..059beb5
--- /dev/null
+++ b/font.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <SFML/Graphics.hpp>
+
+
+class Font{
+public:
+ const unsigned char *filedata;
+ unsigned int file_len;
+ sf::Font sf_font;
+
+ Font(const unsigned char *filedata,unsigned int file_len);
+};