Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-5998

Font metrics for large fonts are wrong and cause errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Severity: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Report Generation
    • Labels:
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Operating System/s:
      Windows 10
    • Steps to Reproduce:
      Hide

      Either:
      1) Open the attached report
      or
      2) create a new report with a single label, font Arial, font-size 100pt, drag it into PRD. Set some text that spans multiple lines (for a much bigger bad-effect view), and see the error in the design view.

      Show
      Either: 1) Open the attached report or 2) create a new report with a single label, font Arial, font-size 100pt, drag it into PRD. Set some text that spans multiple lines (for a much bigger bad-effect view), and see the error in the design view.

      Description

      This seems to be caused by a change in the JDK, as I havent noticed that in the previous years of development. I traced this down to the values the JDK/AWT returns when we ask for font metrics. Once a font crosses a certain size, these methods return zero without indicating an error. (Tested in Windows 10)

        Attachments

        1. 2018-04-10_15-38-14.png
          2018-04-10_15-38-14.png
          63 kB
        2. aaaa.prpt
          4 kB
        3. PRD-5998_java1.8.0_161.JPG
          PRD-5998_java1.8.0_161.JPG
          149 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tmorgner Thomas Morgner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: