googlefonts / googlefonts/fontations
[write-fonts] Add a possibility to calculate a `maxp` 1.0 table
- Dominant language
- Rust
- Stars
- 826
- Forks
- 75
- Avg merge
- 22h 33m
- Merged PRs (30d)
- 75
Description
This table seems to be required, a Font without a `maxp` table crashes FontValidator. While the 0.5 version is simple, it seems each TTF font requires the 1.0 table, which says to require all values.
Currently, there is only a default function for the 0.5 version (for OTF fonts).
[Here](https://github.com/fonttools/fonttools/blob/main/Lib/fontTools/ttLib/tables/_m_a_x_p.py) is how fonttools calculates the 1.0 table.
When it is enough in praxis to set the difficult values to `0`, I think such a function would also be enough.
Contributor guide
No contributing guide indexed for this repository
Research direction
Read the existing write-fonts implementation for the maxp 0.5 default function, then compare its required fields with the fonttools _m_a_x_p.py calculation linked in the issue. Confirm suitable values for the difficult fields and validate that generated TTF fonts no longer crash FontValidator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100