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

Text is displayed in bold when fonts are installed into symlinked folder

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b158
    • OS:
      linux

      Backports

        Description

        When fonts on Linux are installed in a specific way (when path from fontconfig root folder to font file includes a symbolic link), some text is displayed in bold by Java application, even though plain font is requested.

        Here are the steps to reproduce the issue on a clean installation of Ubuntu 14.04.4:
        1) mkdir ~/fonts
        2) Copy attached font files (consola.ttf and consolab.ttf) into ~/fonts
        3) cd; ln -s fonts .fonts
        4) fc-cache
        5) Execute attached program (BoldTest.java)

        Expected result: text in first line is displayed in plain font, text in the second line is displayed in bold font

        Actual result: text in both lines is displayed in bold font

          Attachments

          1. BoldTest.java
            0.9 kB
            Dmitry Markov
          2. consola.ttf
            350 kB
            Dmitry Markov
          3. consolab.ttf
            360 kB
            Dmitry Markov

            Issue Links

              Activity

                People

                Assignee:
                dmarkov Dmitry Markov
                Reporter:
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: