ICEpdf
  1. ICEpdf
  2. PDF-726

Type 3 font stroking width problem

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.6
    • Component/s: Core/Parsing, Font Engine
    • Labels:
      None
    • Environment:
      pro fonts engine

      Description

      The PDF document in question uses a Type 3 font. Each glyph of the font is defined by a postscript content stream and corresponding vector draw operations. The line width for the lines is defined with the value of 100.0 which is extremely wide. Under closer inspection the PDF specification states that the current CTM should be applied to the line width. For some reason we have no previous test case for this corner case. But the glyph2Userspace affine transform has a scalling factor of 0.001 which when applied to 100.0 results in a more realistic final width and the PDF content renders correctly.

      Some refactoring is need to pass in the glyph2User space scaling factor into the content parser.

        Activity

        Hide
        Patrick Corless added a comment -

        I'll need to run this fix throw QA but I'm pretty confident that it will have little side effects. Marking ask fixed.

        Show
        Patrick Corless added a comment - I'll need to run this fix throw QA but I'm pretty confident that it will have little side effects. Marking ask fixed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: