| OLD | NEW |
| 1 Sanitiser for OpenType | 1 OpenType Sanitiser |
| 2 ---------------------- | 2 ================== |
| 3 | 3 |
| 4 (Idea from Alex Russell) | 4 The OpenType Sanitiser (OTS) parses and serialises OpenType files (OTF, TTF) |
| 5 and WOFF and WOFF2 font files, validating them and sanitising them as it goes. |
| 5 | 6 |
| 6 The CSS font-face property[1] is great for web typography. Having to use images | 7 The C library is integrated into Chromium and Firefox, and also simple |
| 8 command line tools to check files offline in a Terminal. |
| 9 |
| 10 The CSS [font-face property][1] is great for web typography. Having to use image
s |
| 7 in order to get the correct typeface is a great sadness; one should be able to | 11 in order to get the correct typeface is a great sadness; one should be able to |
| 8 use vectors. | 12 use vectors. |
| 9 | 13 |
| 10 However, the TrueType renderers on many platforms have never been part of the | 14 However, on many platforms the system-level TrueType font renderers have never |
| 11 attack surface before and putting them on the front line is a scary proposition. | 15 been part of the attack surface before, and putting them on the front line is |
| 12 Esp on platforms like Windows where it's a closed-source blob running with high | 16 a scary proposition... Especially on platforms like Windows, where it's a |
| 13 privilege. | 17 closed-source blob running with high privilege. |
| 14 | 18 |
| 15 Thus, the OpenType Sanitiser (OTS) is designed to parse and serialise OpenType | 19 Installation |
| 16 files, validating them and sanitising them as it goes. | 20 ------------ |
| 17 | 21 |
| 22 See [INSTALL][2] |
| 18 | 23 |
| 19 See INSTALL for build instructions. | 24 Usage |
| 25 ----- |
| 20 | 26 |
| 21 [1] http://www.w3.org/TR/CSS2/fonts.html#font-descriptions | 27 See [docs][3] |
| 28 |
| 29 * * * |
| 30 |
| 31 Thanks to Alex Russell for the original idea. |
| 32 |
| 33 [1]: http://www.w3.org/TR/CSS2/fonts.html#font-descriptions |
| 34 [2]: https://github.com/khaledhosny/ots/tree/master/INSTALL |
| 35 [3]: https://github.com/khaledhosny/ots/tree/master/docs/ |
| OLD | NEW |