[ 
https://issues.apache.org/jira/browse/NETBEANS-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eirik Bakke updated NETBEANS-4166:
----------------------------------
    Labels: HiDPI  (was: )

> Review likely inaccurate int-based character width calculations in editor UI
> ----------------------------------------------------------------------------
>
>                 Key: NETBEANS-4166
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4166
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Painting & Printing
>    Affects Versions: 11.3
>         Environment: Windows and MacOS with HiDPI/retina displays, Java 9 and 
> above
>            Reporter: Eirik Bakke
>            Priority: Minor
>              Labels: HiDPI
>
> While fixing NETBEANS-346, I discovered several other editor painting 
> coordinate calculations which are likely inaccurate due to rounding errors. 
> Fixing these will be a bit of work, though, and it may be preferable to wait 
> until specific bugs are identified before doing so, so that the changes can 
> be verified to have had the desired effect.
> The following members should likely be changed from an int to a float, and 
> initialized from font metrics to full precision:
> * org.netbeans.editor.EditorUI.defaultSpaceWidth
> * org.netbeans.modules.editor.lib.drawing.DrawEngine.spaceWidth, 
> defaultSpaceWidth, and possibly fragmentWidth
> * org.netbeans.modules.editor.lib.drawing.DrawGraphics.defaultSpaceWidth
> These changes will propagate to related APIs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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

Reply via email to