Been playing around with what you posted, which doesn't work by the way.
I compared the output with arial.hpp and I'm just not sure what data Font::LoadFromMemory expects. Is it expecting an array of ints, as your solution indicates, or is it expecting an array of bytes, which is what arial.hpp has? I tried a few utilities to convert files to .c source, such as Hex Workshop from
http://www.bpsoft.com.
I declare the array of fontdata in a header as such:
const char terminus_data[] =
{
#include "terminus.h"
};
and terminus.h contains only the array of data, just like arial.hpp.
Compiles without issues, and LoadFromMemory returns without errors, but nothing is displayed on screen.
The only thing I changed in my initialization code was commenting out the LoadFromFile and replacing it with the LoadFromMemory, and it was working fine with LoadFromFile, so I think the problem is the format of the terminus.h
Any help is appreciated
[EDIT]
Nevermind, fixed it. I had inadvertently commented out these two lines in my drawing thread (before and after drawing the text) since I thought they weren't necessary anymore:
window->SaveGLStates();
//draw stuff
window->RestoreGLStates();
With those lines uncommented, it displays fine.
So for future reference for anyone else, I used that program I linked above in order to convert a .ttf to a c source.