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

Overline, Underline ends before the actual text for Italized Fonts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • fx1.1
    • javafx
    • None

      I have a text to which I apply overline and underline. If I render the font using some ITALIC font, the overline/underline ends slightly before the text and I see some projection on the left side beyond the text. Looks like it is actually calculated for non-italic version of the text.

      To reproduce the bug, run the attached test and choose any italic font. Click on Overline and Underline. If the overline/underline is just short of the text and if there is an extra projection on the left, bug is reproduced. I have attached a screenshot.

      I reproduced it on WinXP/Vista - 6u12 - Franca b03.

        1. text_overline.png
          57 kB
          Praveen Mohan
        2. TextTest.fx
          24 kB
          Praveen Mohan

            Unassigned Unassigned
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: