fontsan

Crates.iofontsan
lib.rsfontsan
version0.6.1
created_at2026-01-21 16:52:11.2186+00
updated_at2026-01-21 16:52:11.2186+00
descriptionSanitiser for untrusted font files
homepage
repositoryhttps://github.com/servo/fontsan
max_upload_size
id2059672
size1,013,376
Martin Robinson (mrobinson)

documentation

README

fontsan

Build Status

A sanitiser for untrusted font files. Currently, this is just a wrapper around ots, which it builds a copy of.

To update:

  • check the appropriate upstream tag/commit of ots and its dependencies
  • edit the _TAG variables at the top of the src/deps/update_deps.sh script
  • $ bash src/deps/update_deps.sh
  • $ git add src/deps
  • Potentially adjust the build.rs to accommodate new and removed files from the dependencies
  • make cargo build and cargo test work
  • update the crate version number and the CHANGELOG.md

License of fontsan and dependencies

  • fontsan: BSD 3-clause license
  • ots: BSD 3-clause license
  • lz4: BSD 2-Clause license
  • brotli: MIT license
  • woff2: MIT license
Commit count: 70

cargo fmt