Saturday, 28 September 2013

Easiest to use C API to render utf8 text in OpenGL, outline rendering prefered [on hold]

Easiest to use C API to render utf8 text in OpenGL, outline rendering
prefered [on hold]

What is the easiest C API to render utf8 text in OpenGL.
I would prefer to use outline rendering.
Need to handle non ASCII characters
Huge dependencies would be nice to avoid
My ideal api would be init(),setFont(char*name),drawText(char*text,int
boxWidth,int boxHeight)
I have looked at
http://paulbourke.net/oldstuff/glf/ but this can't handle non ASCII in my
tests
http://quesoglc.sourceforge.net/ looks nice but seems unmaintained and I
get segfaults from it in debian stable
using Freetype directly does not support outline fonts as far as I
understand and freetype seems complicated to use
needs to be cross platform (linux, osx, windows)
So what would you recommend, I do not want C++ libraries as I intend to
use it from D and C bindings are much easier to write.

No comments:

Post a Comment