Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020457

Fontmatrix for Type1 fonts is not used correctly

    XMLWordPrintable

Details

    • 2d
    • b110
    • generic
    • generic

    Backports

      Description

        Type1 fonts have a fontmatrix to define the transformation matrix of the
        glyphs for rendering.
        This matrix is defined in the font file as :
        /FontMatrix [0.001 0 0 0.001 0 0] readonly def

        Usually this matrix is isotropic, meaning the scaling in the x direction is
        the same as the scaling in the y direction.
        However, in some cases, the matrix is anisotropic to synthesize a narrow
        font.
        Example for a HelveticaNarrow type 1 font :
        /FontMatrix [0.00082 0 0 0.001 0 0] readonly def

        Java seems to not take in account the scaling difference between the x and y
        axis, and ignore the content of those values in the FontMatrix.

        Attachments

          Issue Links

            Activity

              People

                anashaty Anton Nashatyrev (Inactive)
                anashaty Anton Nashatyrev (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: