From 1002b8640b80c0ec4ba5c242ca2873ee1fc591d5 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 30 Dec 2016 22:53:42 +0100 Subject: Drawing text (also added Liberation font with license) --- font.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 font.cpp (limited to 'font.cpp') 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 +#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)); +} -- cgit v1.2.3-70-g09d2