Libdrawtext is a simple library for fast anti-aliased text rendering in OpenGL.
Since version 0.3 libdrawtext can also render text on plain RGBA pixel buffers.
Libdrawtext uses freetype2 for glyph rasterization. If you would rather avoid
having freetype2 as a dependency, you can optionally compile libdrawtext
without it, and use pre-rendered glyphmaps. Glyphmaps can be generated by the
included font2glyphmap tool, or by calling
See examples subdir for simple programs demonstrating libdrawtext usage, and refer to the heavily commented drawtext.h header file.
- website: http://nuclear.mutantstargoat.com/sw/libdrawtext
- repository (git): https://github.com/jtsiomb/libdrawtext.git
- OpenGL (optional)
- freetype2 (optional): http://www.freetype.org
Copyright (C) 2011-2016 John Tsiombikas firstname.lastname@example.org
You may freely use, modify and/or redistribute libdrawtext, under the terms of the GNU Lesser General Public License (LGPL) version 3 (or at your option, any later version published by the Free Software Foundation). See COPYING, and COPYING.LESSER for details.
To build and install
libdrawtext on UNIX, run the usual:
./configure make make install
./configure --help for build-time options.
To build on windows, you may use the included visual studio project, or use mingw, in which case just follow the UNIX instructions above.
To cross-compile for windows with mingw-w64, try the following incantation:
./configure --prefix=/usr/i686-w64-mingw32 make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar sys=mingw make install sys=mingw
Feel free to send in bug reports, patches, and comments to: email@example.com
Only plain text email messages, hard-wrapped at 72 columns will be accepted.