3 releases (breaking)

Uses new Rust 2024

0.3.0 Oct 2, 2025
0.2.0 Sep 9, 2025
0.1.0 Jul 22, 2025

#1588 in Text processing

Download history 79/week @ 2025-07-23 192/week @ 2025-08-06 432/week @ 2025-08-13 332/week @ 2025-08-20 361/week @ 2025-08-27 787/week @ 2025-09-03 426/week @ 2025-09-10 642/week @ 2025-09-17 796/week @ 2025-09-24 1587/week @ 2025-10-01 1497/week @ 2025-10-08 1117/week @ 2025-10-15 4185/week @ 2025-10-22 4565/week @ 2025-10-29 5925/week @ 2025-11-05

15,973 downloads per month
Used in 54 crates (via hayro-interpret)

Apache-2.0

160KB
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.

Dependencies

~0.4–0.8MB
~19K SLoC