8000 GitHub - kkaefer/libschrift: A lightweight TrueType font rendering library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A lightweight TrueType font rendering library

License

Notifications You must be signed in to change notification settings

kkaefer/libschrift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libschrift

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: https://www.suckless.org/philosophy/
  • 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.

Limitations

  • The only available text encoding is UTF-8. See: http://www.utf8everywhere.org
  • 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.
  • the demo program is currently limited to ASCII characters; the library is not. UTF-8 support in the demo program will be implemented eventually.

Documentation

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

Progress

libschrift isn't ready for serious use yet.

Most notably, compound glyph support is still missing, so some characters like Umlauts or accents will likely not work yet.

Also, a huge amount of documentation still has to be done.

About

A lightweight TrueType font rendering library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.8%
  • Roff 5.7%
  • Makefile 4.5%
0