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

Eirik Bakke edited comment on NETBEANS-6358 at 1/5/22, 12:32 PM:
-----------------------------------------------------------------

My conclusion: This is a JDK bug, where the Segoe UI font renders too heavy 
when ClearType is disabled. (It's not actually bold--the bold style is even 
heavier.)

I tried to fix it by changing RenderingHints.KEY_TEXT_LCD_CONTRAST in 
UIDefaults, but this setting seems to be ignored. One could set 
KEY_TEXT_ANTIALIASING to VALUE_TEXT_ANTIALIAS_OFF, but this affects all fonts 
at all sizes, which is not correct. (When ClearType is off, 
RenderingHints.VALUE_TEXT_ANTIALIAS_GASP is set, which means the font is 
supposed to specify which sizes it should be anti-aliased for. For example, 
Tahoma is antialiased at larger sizes only. But Segoe UI always wants to be 
antialiased. Which is OK and what other Windows apps do as well, except it ends 
up too heavy in Java...)

I think the solution is to have NetBeans Windows LAF detect when ClearType is 
disabled (when 
RenderingHints.KEY_TEXT_ANTIALIASING==RenderingHints.VALUE_TEXT_ANTIALIAS_GASP),
 and then use the old Tahoma 11 in that case instead of Segoe UI 12.

Ideally FlatLAF should do the same, but that would have to be a change made in 
the FlatLAF library.

Meanwhile we could also file an OpenJDK bug report.


was (Author: ebakke):
My conclusion: This is a JDK bug, where the Segoe UI font renders too heavy 
when ClearType is disabled. (It's not actually bold--the bold style is even 
heavier.)

I tried to fix it by changing RenderingHints.KEY_TEXT_LCD_CONTRAST in 
UIDefaults, but this setting seems to be ignored. One could set 
KEY_TEXT_ANTIALIASING to VALUE_TEXT_ANTIALIAS_OFF, but this affects all fonts 
at all sizes, which is not correct. (When ClearType is off, 
RenderingHints.VALUE_TEXT_ANTIALIAS_GASP is set, which means the font is 
supposed to specify which sizes it should be anti-aliased for. For example, 
Tahoma is antialiased at larger sizes only. But Segoe UI always wants to be 
antialiased. Which is OK and what other Windows apps do as well, except it ends 
up too heavy in Java...)

I think the solution is to have NetBeans Windows LAF detect when ClearType is 
disabled (when 
RenderingHints.KEY_TEXT_ANTIALIASING==RenderingHints.VALUE_TEXT_ANTIALIAS_GASP),
 and then use Tahoma 11 in that case instead of Segoe UI.

Ideally FlatLAF should do the same, but that would have to be a change made in 
the FlatLAF library.

Meanwhile we could also file an OpenJDK bug report.

> Font style regression: badly readable font style
> ------------------------------------------------
>
>                 Key: NETBEANS-6358
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6358
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Navigation, ide - UI, java - Navigation
>    Affects Versions: 12.6
>         Environment: NB 12.6
> Win10
>            Reporter: S. M.
>            Assignee: Eirik Bakke
>            Priority: Minor
>         Attachments: ClearType Tahoma vs. Segoe.png, NetBeans 12.6 Project 
> Font on Windows 11.png, bold.png, regular.png
>
>
> The font style changed in 12.6 in a way that makes it less readable. The 
> following fonts are bold now: 
> - The name of the source files in the source-code-tab 
> - The project names in the projects windows (and all its child nodes)
> This bulky use of bold fonts makes the text badly readable. Please use a 
> regular font instead! The source-code names in the source-window-tab used to 
> be bold only when the file had unsaved changes, which seems to be a good 
> thing to me.
> It might seem to be a 'minor' problem, but the font as part of the 
> ergonomically usability is quite important.
> Thanks a lot!
> Here the comparison:
> Bulky and badly readable: New bold style
> !bold.png!
> Clear and readable: Old regular style
> !regular.png!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
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