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
59,326 downloads per month
Used in 79 crates
(via hayro-interpret)
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~315–760KB
~17K SLoC