Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8340580

Characters in Document diagrams not in the middle

XMLWordPrintable

    • b18
    • 22

      The characters in Document diagrams for the insert and remove methods aren't in the middle of the boxes [1].

      Indeed, at 200% scale and Arial font, there are 6 pixels on top of ‘T’ and ‘h’, but there are 8 pixels on the bottom of ‘q’. If I use Calibri font, the values are 8 and 9 pixels correspondingly [2].

      Moving the text position by 0.5 seems to help, and the values become equal: 7 on either side [3].


      This issue was raised during code review for JDK-8337287:
      https://github.com/openjdk/jdk/pull/20376

      [1] https://github.com/openjdk/jdk/pull/20376#issuecomment-2307945039
      [2] https://github.com/openjdk/jdk/pull/20376#issuecomment-2353728939
      [3] https://github.com/openjdk/jdk/pull/20376#issuecomment-2353743533

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: