[ 
https://issues.apache.org/jira/browse/NETBEANS-819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16614807#comment-16614807
 ] 

Michal Hlavac commented on NETBEANS-819:
----------------------------------------

Reason for this behaviour is that terminal except fixed font size width and 
that is not true with hiDPI support in Java

For example {{FontMetrics.stringWidth("a")}} is 7, but 
{{FontMetrics.stringWidth("aaaa")}} is 26 instead of 28.

> shifted cursor in terminal with GDK_SCALE=2
> -------------------------------------------
>
>                 Key: NETBEANS-819
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-819
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Terminalemulator, platform - Output Window
>    Affects Versions: 9.0
>            Reporter: Michal Hlavac
>            Priority: Major
>              Labels: HiDPI, font
>         Attachments: resize-fonts.mkv, shifted-cursor.mkv
>
>
> Using GDK_SCALE=2 env variable and Oracle JDK 10.0.1 or 9.0.4 cursor in 
> terminal is shifted. Without GDK_SCALE=2 everythink is OK.
>  Added attachment [^shifted-cursor.mkv] with short video. It says more than 
> words.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to