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

[PATCH] Suppress unnecessary "font not found warnings" when generating AFP with raster fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: All
      Platform: All
    • 52416

    Description

      When generating AFP with raster fonts, and due to some rounding errors that happen during scaling, one may get font not found warnings in cases that are not warranted. Example: source specifies font size 10, which due to rounding errors is scaled to size 9.995, such font size does not exist and the warning message of the type "font X with size 9.995pt not found, replaced by size 10.0pt" is output. The patch suppresses the warning message if the difference in font sizes between what is searched and what is found is less than 0.1.

      Attachments

        1. afp_raster_font_warning.patch
          3 kB
          Luis Bernardo
        2. test.fo
          1 kB
          Luis Bernardo

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            lmpmbernardo Luis Bernardo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: