Git Product home page Git Product logo

libschrift's Introduction

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 simple and easy-to-use as possible. See: https://www.suckless.org/philosophy/
  • Make correct (as in artifact-free, Unicode-aware etc.) font rendering easy to achieve.
  • Be reasonably secure, which especially means to not crash, leak memory / resources or expose major security vulnerabilities on corrupted / malicious / random inputs.

Limitations

  • Unicode is the only supported text encoding.
  • Support for most TrueType (.ttf) and certain OpenType (.otf) fonts. No bitmap or PostScript fonts.
  • No hinting. Especially no auto-hinting like FreeType2.

Documentation

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

You can also view the man page in your browser at http://tomolt.github.io/libschrift/

Progress

In terms of security and performance, libschrift is already pretty solid. However, it is still missing some important features, like right-to-left text support.

Visual Quality

A screenshot of the demo program: demo screenshot

Contributing

Bug Reports, Suggestions, Questions, Criticism, Pull Requests and Patches are all welcome!

If you intend to contribute sizeable features or API changes, you might save yourself some time by posting an Issue for them on Github first. This way, if there happens to be any reason why I couldn't merge your contribution, we can find and rectify it right away! ๐Ÿ˜ƒ

You can also buy me (Thomas Oltmann) a coffee, if you'd like:

Buy Me A Coffee

libschrift's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.