Clone this repo:
  1. dc36d4d Remove unused variable INNER_INDEX_BIT_COUNT_MASK by Daniel Holbert · 3 months ago master
  2. b5360b8 [ci] Bin the last working meson version by Khaled Hosny · 3 months ago
  3. 516e40a [STAT] Add null-check to silence coverity warning by jfkthame · 4 months ago
  4. 8689057 [build] Increase version number post release [skip ci] by Khaled Hosny · 4 months ago
  5. 3f26ef1 [state] Correctly check name IDs by Khaled Hosny · 4 months ago v7.1.9

Build Status Build status

OpenType Sanitizer

The OpenType Sanitizer (OTS) parses and serializes OpenType files (OTF, TTF) and WOFF and WOFF2 font files, validating them and sanitizing them as it goes.

The C library is integrated into Chromium and Firefox, and also simple command line tools to check files offline in a Terminal.

The CSS font-face property is great for web typography. Having to use images in order to get the correct typeface is a great sadness; one should be able to use vectors.

However, on many platforms the system-level TrueType font renderers have never been part of the attack surface before, and putting them on the front line is a scary proposition... Especially on platforms like Windows, where it's a closed-source blob running with high privilege.

Building from source

Instructions below are for building standalone OTS utilities, if you want to use OTS as a library then the recommended way is to copy the source code and integrate it into your existing build system. Our build system does not build a shared library intentionally.

Build OTS:

$ meson build
$ ninja -C build

Run the tests (if you wish):

$ ninja -C build test

Usage

See docs


Thanks to Alex Russell for the original idea.