by tomolt

tomolt / libschrift

A lightweight TrueType font rendering library

224 Stars 7 Forks Last release: Not found ISC License 185 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


libschrift is a lightweight TrueType font rendering library.

It can be seen as a much smaller, but more limited alternative to FreeType2.

Specifically, libschrift aims to: - Be as suckless as possible. See: - Make correct (as in artifact-free, UTF-8 handling etc.) font rendering easy-to-use. - Be reasonably secure, which especially means to not crash, leak memory / resources or expose major security vulnerabilities on corrupted / malicious / random input.


  • The only available text encoding is UTF-8. See:
  • Support for most TrueType (.ttf) and certain OpenType (.otf) fonts. No bitmap or PostScript fonts (for now).
  • No hinting. Especially no auto-hinting like FreeType2.


For documentation on how to use libschrift in your own programs, refer to the schrift(3) man page, the source code of the bundled example program sftdemo, as well as the header file schrift.h.

You can also view the man page in your browser at


libschrift isn't ready for serious use yet. Altough most features are in place by now, there is still a lot of testing against real-world font files to be done.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.