You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (JIRA)" <ji...@apache.org> on 2018/08/25 22:09:00 UTC

[jira] [Comment Edited] (NETBEANS-346) Tabs, characters, and the right Margin don't line up

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

Eirik Bakke edited comment on NETBEANS-346 at 8/25/18 10:08 PM:
----------------------------------------------------------------

After some experimentation, I think this bug is _not_ related to the choice of font, but rather to the editor zoom level, in combination with HiDPI (on Windows) or Retina (on MacOS) screens.

Austin Stephens, am I correct to guess that you have a Retina screen? (I.e. MacBook Pro, not a MacBook Air?)

I'm on Windows myself, but I have a Lenovo X1 carbon laptop with a HiDPI screen. The bug occurs on _all_ fonts I have tried, at several sizes, but _only_ when the screen scaling is set at something else than 100% (specifically 150% or 200%--the latter is Windows 10's default setting on these kinds of screens).

The bug occurred with _all_ of the monospaced fonts that I tried:
* Consolas 13
* Lucida Sans Typewriter 13
* Courier New 13
* Monospaced 13
* Monospaced 18

To reproduce the bug, run NetBeans on either a MacBook with a retina-enabled screen, or a Windows laptop with a HiDPI screen set to zoom level 150% or 200%. Then type a line in the editor that's exactly as many characters wide as the right margin marker line _should_ reach. Then zoom in or out and observe that the right margin marker line moves to the left or right of the end of the line depending on the zoom level. (On some zoom levels the right margin marker line actually appears in the right position--but there's no way the user can see this during regular use, without counting up the characters manually first.)



was (Author: ebakke):
After some experimentation, I think this bug is _not_ related to the choice of font, but rather to the editor zoom level, in combination with HiDPI (on Windows) or Retina (on MacOS) screens.

Austin Stephens, am I correct to guess that you have a Retina screen? (I.e. MacBook Pro, not a MacBook Air?)

I'm on Windows myself, but I have a Lenovo X1 carbon laptop with a HiDPI screen. The bug occurs on _all_ fonts I have tried, at several sizes, but _only_ when the screen scaling is set at something else than 100% (specifically 150% or 200%--the latter is Windows 10's default setting on these kinds of screens).

The bug occurred with _all_ of the monospaced fonts that I tried:
* Consolas 13
* Lucida Sans Typewriter 13
* Courier New 13
* Monospaced 13
* Monospaced 18

To reproduce the bug, run NetBeans on either a MacBook with a retina-enabled screen, or a Windows laptop with a HiDPI screen set to zoom level 150% or 200%. Then type a line in the editor that's exactly as many characters wide as the right margin marker line _should_ reach. Then zoom in or out and observe that the right margin marker line moves to the left or right of the end of the line depending on the zoom level. (On some zoom levels the right margin marker line actually appears in the right position--but there's no way the user can see this during regular use, without counting up the characters manually first.)

While the issue has a workaround (manually adjust the zoom level until manual inspection reveals the end-of-line marker to be in the right position), it makes the editor zoom feature much less usable--so I'd say this is a bug that should be fixed in NetBeans.


> Tabs, characters, and the right Margin don't line up
> ----------------------------------------------------
>
>                 Key: NETBEANS-346
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-346
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Other
>    Affects Versions: 9.0
>         Environment: Mac OS 10.10 (at least)
>            Reporter: Austin Stephens
>            Priority: Major
>         Attachments: Screen Shot 2018-01-29 at 4.58.35 PM.png, Screen Shot 2018-02-28 at 11.27.32 AM.png, linewidth.png
>
>
> When the Right Margin is set at 80 chars, it is drawn at 8*2* chars. This is annoying because I have a 1440x900 screen that I split vertically in to two. This results in two editing areas that are about 80 chars wide. I could see the margin line in both editors when scrolled all the way to the left. Since Netbeans (9.0 beta) is now drawing them at char 8*2*, it is not possible to size those editors so I can see the line in both windows and it is driving me crazy.
> This is a first world issue at the moment, but you might find code coming from mac programmers coming in two or more chars too wide in the Netbeans source code.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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