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

        Hide
        Glenn Adams added a comment -

        batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

        Show
        Glenn Adams added a comment - batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed
        Hide
        Jeremias Maerki added a comment -

        Applied. Thanks, David, for catching this.
        http://svn.apache.org/viewvc?rev=593909&view=rev

        Show
        Jeremias Maerki added a comment - Applied. Thanks, David, for catching this. http://svn.apache.org/viewvc?rev=593909&view=rev
        Hide
        David Churavy added a comment -

        Sorry, forgot the revision number: 593573

        Show
        David Churavy added a comment - Sorry, forgot the revision number: 593573
        Hide
        David Churavy added a comment -

        Attachment FontSetup.java.patch has been added with description: FontSetup patch to use Font.getName()

        Show
        David Churavy added a comment - Attachment FontSetup.java.patch has been added with description: FontSetup patch to use Font.getName()

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development