Skip to content

[read-fonts] charstring eval for type1 fonts#1761

Open
dfrg wants to merge 2 commits intomainfrom
t1-evalcs
Open

[read-fonts] charstring eval for type1 fonts#1761
dfrg wants to merge 2 commits intomainfrom
t1-evalcs

Conversation

@dfrg
Copy link
Member

@dfrg dfrg commented Mar 13, 2026

Updates to expose type1 charstring evaluation and support testing:

  • adds a CharstringContext impl for Type1Font
  • adds Type1Font::evaluate_charstring
  • moves and exposes (gated by cfg(test)) some charstring test helpers
  • changes charstring::evaluate to call finish on the sink when complete and cleans up the associated logic elsewhere
  • adjustments to the font matrix and scaling API for easier usage

dfrg added 2 commits March 13, 2026 13:49
Updates to expose type1 charstring evaluation and support testing:
- adds a `CharstringContext` impl for `Type1Font`
- adds `Type1Font::evaluate_charstring`
- moves and exposes (gated by cfg(test)) some charstring test helpers
- changes `charstring::evaluate` to call `finish` on the sink when complete and cleans up the associated logic elsewhere
dfrg added a commit that referenced this pull request Mar 13, 2026
Adds support for detecting and processing type1 fonts to fauntlet. Also adds a check for a few tests fonts to CI.

Additionally makes the type1 support in read-fonts visible and fixes a few warnings that were missed due to the expect(unused) attribute.

First commit contains an intentionally broken type1 scale factor in fauntlet to prove that the CI checks are working.

Based on #1761 which must land first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant