foliojs / fontkit

An advanced font engine for Node and the browser
1.44k stars 210 forks source link

treat endchar operator with 4 arguments as seac operator (fix #322) #323

Open Connum opened 7 months ago

Connum commented 7 months ago

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

This fixes #322 and fontkit will then pass the Unicode test case CFF-3.