Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle endchar command with seac parameters (standard encoding accented characters) #633

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

Connum
Copy link
Contributor

@Connum Connum commented Oct 31, 2023

Description

Added handling of the endchar command with seac-parameters in CFF fonts.

See The Type 2 Charstring Format spec section "Appendix C: Compatibility and Deprecated Operators" (page 35)
https://adobe-type-tools.github.io/font-tech-notes/pdfs/5177.Type2.pdf
and Adobe Type 1 Font Format spec (page 50)
https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf

Motivation and Context

fix #117 (composite glyphs having no path)

How Has This Been Tested?

Loaded AbrilFatface-Regular.otf with the Glyph Inspector to make sure that all composite glyphs are rendered correctly

Screenshots (if appropriate):

before (note empty glyphs 202, 204, ... 291, 293, 295, 299)
image
after
image
and composition information for glyph 299
image
The newly added test case for this in the unicode test tool passing:
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I did npm run test and all tests passed green (including code styling checks).
  • I have added tests to cover my changes.
  • My change requires a change to the documentation.
  • I have updated the README accordingly.
  • I have read the CONTRIBUTING document.

@Connum Connum force-pushed the fix/117-seac-endchar branch from d32bd6f to 4fdba0c Compare November 5, 2023 15:49
@Connum Connum requested review from ILOVEPIE and yne November 5, 2023 15:50
@Connum Connum added this to the Release 2.0.0 milestone Nov 5, 2023
@Connum Connum merged commit a478af0 into master Nov 5, 2023
2 checks passed
@Connum Connum deleted the fix/117-seac-endchar branch November 5, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Spec Related to the implementation of the Opentype specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not rendering OTF correctly
2 participants