Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-613

Adobe CFF/Type2 font additions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • FontBox
    • None

    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

        1. CharStringConverter.patch
          3 kB
          Villu Ruusmann

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vfed Villu Ruusmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: