Description
Implemented the conversion of Type2 commands "hflex", "flex", "hflex1" and "flex1" to Type1 command "rrcurveto".
The conversion is somewhat simplistic, because it produces Bezier curves ("rrcurveto") in places where simple lines ("rlineto") would suffice (see the chapter 4.1 "Path Construction Operators" in Type2 font specification for more details). Anyhow, it eliminates the possibility of running into an UnsupportedOperationException at runtime.
I've tested the code by rendering and inspecting the outlines of some previously problematic glyphs, and it seems to be okay.
Attachments
Attachments
Issue Links
- is part of
-
PDFBOX-542 Support for Adobe CFF/Type2 fonts
- Closed