diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-30 22:53:42 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-30 22:53:42 +0100 |
commit | 1002b8640b80c0ec4ba5c242ca2873ee1fc591d5 (patch) | |
tree | 66a34e66c3a078d9a7adc4593fa057dc0d8334dc /font.cpp | |
parent | da86e33dcba7d66e2e5b55efa8a7265c5d2989b9 (diff) |
Drawing text (also added Liberation font with license)
Diffstat (limited to 'font.cpp')
-rw-r--r-- | font.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/font.cpp b/font.cpp new file mode 100644 index 0000000..22020c9 --- /dev/null +++ b/font.cpp @@ -0,0 +1,8 @@ +#include <cassert> +#include "font.h" + + +Font::Font(const unsigned char *filedata,unsigned int file_len) + :filedata(filedata),file_len(file_len){ + assert(sf_font.loadFromMemory(filedata,file_len)); +} |