• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

include/H12-Nov-2020-305223

src/H12-Nov-2020-14,98011,785

BUILD.gnH A D07-Nov-20201.9 KiB9587

INSTALLH A D07-Nov-20201.6 KiB5335

LICENSEH A D07-Nov-20201.5 KiB2824

Makefile.amH A D07-Nov-202032.8 KiB847762

OWNERSH A D07-Nov-202099 54

READMEH A D07-Nov-20201.1 KiB3624

README.chromiumH A D07-Nov-2020509 1413

configure.acH A D07-Nov-20202.4 KiB8974

README

1OpenType Sanitizer
2==================
3
4The OpenType Sanitizer (OTS) parses and serializes OpenType files (OTF, TTF)
5and WOFF and WOFF2 font files, validating them and sanitizing them as it goes.
6
7The C library is integrated into Chromium and Firefox, and also simple
8command line tools to check files offline in a Terminal.
9
10The CSS [font-face property][1] is great for web typography. Having to use images
11in order to get the correct typeface is a great sadness; one should be able to
12use vectors.
13
14However, on many platforms the system-level TrueType font renderers have never
15been part of the attack surface before, and putting them on the front line is
16a scary proposition... Especially on platforms like Windows, where it's a
17closed-source blob running with high privilege.
18
19Installation
20------------
21
22See [INSTALL][2]
23
24Usage
25-----
26
27See [docs][3]
28
29* * *
30
31Thanks 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/
36

README.chromium

1Name: OTS (OpenType Sanitizer)
2URL: https://github.com/khaledhosny/ots.git
3Version: fbe8db1e192958055fef1607ae69b478789ba22a
4Security Critical: yes
5License: BSD
6
7Local Modifications:
8- This only includes src/ and include/ directories, and the files under the
9  repository root. Unneeded direcories such as tests/, util/ are removed.
10- src/ots.cc: Changed include path to woff2_dec.h.
11- BUILD.gn: Added.
12- fuzz/: Added.
13- ots.cc: Allow CFF2 outlines, upstreamed in
14  https://github.com/khaledhosny/ots/pull/161