Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-15394

High resolution DPI causes scaling issue

    XMLWordPrintable

    Details

    • 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.

      Description

      When using a high DPI screen (e.g. 3K screen), SWT scaling becomes an issue.

      There is, however, a semi-workable solution based on the eclipse bug 421383 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383)

      I pulled the 4.4 RC3 of eclipse and pulled out the following files:
      org.eclipse.swt.win32.win32.x86_64_3.105.0.v20160525-1431.jar
      org.eclipse.swt_3.105.0.v20160525-1431.jar

      and replaced the swt.jar file in the data-integration/libswt/win64 forlder.

      Added the following Java Options.
      -Dswt.autoScale=exact -Dswt.autoScale.method=smooth

      If you want to try different scaling factors. Please use this these flags

      -Dswt.autoScale=<integer|exact|quarter|<value>>

      This flag accepts 4 parameters
      -integer : scaling will be in integer multiples
      -exact : scaling factor will use exact scaling factor set in the system settings
      -quarter : same as exact but scaling factor is rounded off to nearest 25%
      -<value> : you can specify a scaling factor value which you want to use.

      Please note there may be issues with other values other than integer.

      You can also specify scaling method using this flag
      -Dswt.autoScale.method=<smooth|nearest>
      this flag accepts 2 parameters
      -smooth : all the scaled images will be smooth. this will give good scaled images.
      -nearest : This provides scaling using nearest method. this uses fastest algorithm and causes very blurry images.

      Only tested in 5.3.0.1 GA.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              anthonycarter Anthony Carter (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: