Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khaledhosny/ots
Sanitizer for OpenType
https://github.com/khaledhosny/ots
Last synced: 7 days ago
JSON representation
Sanitizer for OpenType
- Host: GitHub
- URL: https://github.com/khaledhosny/ots
- Owner: khaledhosny
- License: bsd-3-clause
- Created: 2014-01-15T20:36:53.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T11:04:07.000Z (about 1 month ago)
- Last Synced: 2024-10-13T14:15:20.951Z (26 days ago)
- Language: C++
- Homepage:
- Size: 40.6 MB
- Stars: 263
- Watchers: 29
- Forks: 63
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typography - OpenType Sanitiser - The OpenType Sanitiser (OTS) parses and serialises OpenType files (OTF, TTF) and WOFF and WOFF2 font files, validating them and sanitising them as it goes. (Font Validator / Free)
README
[![Build](https://github.com/khaledhosny/ots/actions/workflows/ci.yml/badge.svg)](https://github.com/khaledhosny/ots/actions/workflows/ci.yml)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/ots.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:ots)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][1] 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 buildRun the tests (if you wish):
$ ninja -C build test
Usage
-----See [docs](docs)
* * *
Thanks to Alex Russell for the original idea.
[1]: http://www.w3.org/TR/CSS2/fonts.html#font-descriptions