Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-1060

Inconsistencies with font measurement on some platforms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 2.1.0
    • wtk-terra
    • None
    • Windows 10 with 18 pt FontUtilities.MONOSPACED_FONTS (which could be any of "Courier", "Courier New", "Andale Mono", "Monaco", "Menlo", or "MONOSPACED" depending on platform).

    Description

      Using a (new) NumberRuler with both TextArea and TextPane shows inconsistencies (only on Windows that I can tell) between the font height and positioning between the ruler and the two components. Specifically:

      • with TextPane the numbers are ~1 pix lower in ruler than in text
      • with TextArea the numbers in ruler are same ~1 pix lower on normal lines, BUT on wrapped lines the TextArea seems to ignore leading so that the lines get higher and higher WRT ruler

      On OSX there seems to be none of the problems.

      Attachments

        1. font_measure_osx.png
          393 kB
          Roger Lee Whitcomb
        2. font_measure_windows.png
          883 kB
          Roger Lee Whitcomb

        Activity

          People

            rwhitcomb Roger Lee Whitcomb
            rwhitcomb Roger Lee Whitcomb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: