Skip to main content

Introduction

libstb (Shaped Typography & Bitmaps) decodes, encodes, resizes, edits and draws images, renders text (Persian and Arabic included) and compresses with zlib, from Python and from C++. It has no system libraries and no Python dependencies.

The code on every page follows the language you pick in the top bar. Your choice is remembered, and ?lang=cpp or ?lang=python in a link preselects it. Where the two APIs differ, the page says so in text, and its last section, "API at a glance", lists the calls of the language you picked.

Where to start​

  1. Install the Python package or add the C++ library to a CMake project.
  2. The quick start opens a picture, makes a thumbnail and writes it.
  3. Then pick a chapter:

What is not here​

The Doxygen (C++) and Sphinx (Python) references are not part of this site, and a few corners (the rarer Outline and Loader options) are described in the guide and in the project README rather than on a page of their own.