Fop
  1. Fop
  2. FOP-1453

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: None
    • Component/s: renderer/awt
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other
    • External issue ID:
      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).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            fop-dev
            Reporter:
            David Churavy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development