Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1453

[PATCH] Java2D FontSetup should use Font.getName()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • renderer/awt
    • None
    • Operating System: other
      Platform: Other
    • 43835

    Description

      The latest (revision version of org.apache.fop.render.java2d.FontSetup uses
      java.awt.Font.getFontName() to obtain the detected font name and parses it to
      register an appropriate FontTriplet. The problem is that getFontName() returns
      the font name in the system's default locale, which can be different that
      English and than the name parsing fails. Attaching patch which uses
      Font.getName(), tested on Windows XP. Another possibility would be to use
      Font.getFontName(Locale.ENGLISH).

      Attachments

        1. FontSetup.java.patch
          2 kB
          David Churavy

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            churavy@kadel.cz David Churavy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: