OTS-SANITIZE(1)

πŸ‘‘ ots-sanitize β€” the manual, but make it slay

okay bestie, welcome to the glow-up of ots-sanitize(1). yes it's a real Unix manual page, yes it's about fonts, and yes we're gonna have fun with it. πŸ’–


✨ NAME ✨

ots-sanitize β€” font validator and transcoder. she checks your fonts and she also converts them. main character energy, no cap. πŸ‘‘


🌸 SYNOPSIS 🌸

ots-sanitize [OPTIONS]... FONT_FILE [DEST_FONT_FILE] [FONT_INDEX]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so ots-sanitize is a program that validates and/or transcodes a font file using the OTS library. that's the whole vibe.

the OpenType Sanitizer (OTS, for the girlies in the know) parses and serializes OpenType files (OTF, TTF) and WOFF and WOFF2 font files, validating them and sanitizing them as it goes. it's giving security guard but for glyphs. 🧚

the options are literally just these two:

  • --quiet β€” do not display information or error messages. she goes silent mode, no commentary, no drama. 🀫
  • --version β€” output version information and exit. she tells you who she is and then she leaves. iconic. πŸ’…

πŸ”₯ EXAMPLES πŸ”₯

sanitize a sample and save it to another file β€” the classic glow-up:

$ ots-sanitize sample.otf transcoded_sample.otf
File sanitized successfully!

try to sanitize a malformed file, aka the vibe check that goes wrong:

$ ots-sanitize malformed.ttf
WARNING: bad range shift
ERROR at src/ots.cc:670 (ProcessGeneric)
Failed to sanitize file!
not the WARNING: bad range shift 😭 sometimes the font is simply not that girl and there's nothing we can do about it.

πŸŽ€ REPORTING BUGS πŸŽ€

found a bug? report it, bestie, don't suffer in silence:

https://github.com/khaledhosny/ots/issues


🌈 SEE ALSO 🌈

the whole friend group. go say hi. 🫢


OpenType Sanitizer, November 2020. that's the tea, that's the source and the date, and that's the end of the page. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹