4 releases (breaking)

Uses new Rust 2024

0.4.0 Jan 8, 2026
0.3.0 Oct 2, 2025
0.2.0 Sep 9, 2025
0.1.0 Jul 22, 2025

#2222 in Text processing

Download history 5216/week @ 2025-10-25 4922/week @ 2025-11-01 5538/week @ 2025-11-08 5809/week @ 2025-11-15 5916/week @ 2025-11-22 7348/week @ 2025-11-29 8779/week @ 2025-12-06 7975/week @ 2025-12-13 5273/week @ 2025-12-20 4531/week @ 2025-12-27 8162/week @ 2026-01-03 13021/week @ 2026-01-10 12130/week @ 2026-01-17 14127/week @ 2026-01-24 16659/week @ 2026-01-31 13958/week @ 2026-02-07

59,326 downloads per month
Used in 79 crates (via hayro-interpret)

Apache-2.0 OR MIT

165KB
4.5K SLoC

A CFF and Type1 font parser.

This crate is a fork of the ttf-parser library, but with the majority of the functionality completely stripped away. The purpose of this crate is to be a light-weight font parser for CFF and Type1 fonts, as they can be found in PDFs. Only the code for parsing CFF fonts has been retained, while code for parsing Type1 fonts was newly added.

Note that this is an internal crate and not meant to be used directly. Therefore, it's not well-documented.


hayro-font

This crate is a fork of the ttf-parser library, but with the majority of the functionality completely stripped away. The purpose of this crate is to be a light-weight font parser for CFF and Type1 fonts, as they can be found in PDFs. Only the code for parsing CFF fonts has been retained, while code for parsing Type1 fonts was newly added.

License

Licensed under either of

at your option.

Dependencies

~315–760KB
~17K SLoC