The cursor in controls like TextField descends too much below the baseline. This looks unnatural.
I just tested the cursor height here in my browser, Google Chrome, in NetBeans, and in iWork Pages.
The difference between the cursor of JavaFX and other application's cursors is easily revealed if you enter the text "jK". In JavaFX, the cursor descends below the lowest parts of the 'j', whereas in other applications it does not. Moreover, in JavaFX the cursor descends more below the 'K' than it raises above it, like a vertical bar character (as in 'K|'), whereas in other applications the cursor is centered around the 'K' (as in 'KI')
The reason I am filing this issue is, if you style a text field to visually center the text vertically, the cursor no longer looks visually centered - it looks as if it is hanging too low.
I just tested the cursor height here in my browser, Google Chrome, in NetBeans, and in iWork Pages.
The difference between the cursor of JavaFX and other application's cursors is easily revealed if you enter the text "jK". In JavaFX, the cursor descends below the lowest parts of the 'j', whereas in other applications it does not. Moreover, in JavaFX the cursor descends more below the 'K' than it raises above it, like a vertical bar character (as in 'K|'), whereas in other applications the cursor is centered around the 'K' (as in 'KI')
The reason I am filing this issue is, if you style a text field to visually center the text vertically, the cursor no longer looks visually centered - it looks as if it is hanging too low.
- relates to
-
JDK-8093957 When I use 'Arial' or 'Hiragino Sans GB' font in a TextArea, the arrow 'Down' is not working well
-
- Resolved
-