> Add --fontsize 24 (or whatever size works) to your netbeans.conf and turn off 
> zoom.

That won't work for multi-monitor situations where one monitor is HiDPI and one 
is not--the window would appear twice as large (in physical inches) if you 
dragged it from the HiDPI screen to the regular screen. Are you on Windows, 
Linux, or MacOS? Both on Windows and MacOS, Java 10 has very good support for 
per-monitor HiDPI scaling, implemented at the AWT level.

> Of course fonts will look fuzzy when zoomed - you are making the logical 
> pixels take up more than one physical pixel.

I believe Christian Lenz was talking about the Windows "Scale and layout" 
setting, for which this is _not_ quite correct. The fonts will look perfectly 
sharp, provided you use Java 10 and the workaround for the missing NetBeans 
launcher manifest (see NETBEANS-1227). Every Graphics2D object will have a 
defaultTransform that ensures that text and other Java2D graphics primitives 
are rendered at twice (or 150% etc.) the pixel resolution, without Java apps 
having to do anything in particular to support it. If a window is dragged to 
another screen, the FontRenderContext and defaultTransform changes to whatever 
HiDPI scaling setting is set for that screen, and the window repaints at the 
new scaled resolution. Same for MacOS retina displays.

-- Eirik

-----Original Message-----
From: Tim Boudreau <niftin...@gmail.com> 
Sent: Friday, September 7, 2018 1:48 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Blurry font with NetBeans 9.0

Add --fontsize 24 (or whatever size works) to your netbeans.conf and turn off 
zoom.

Of course fonts will look fuzzy when zoomed - you are making the logical pixels 
take up more than one physical pixel.

There are a couple of system properties that may be useful to tell AWT as well.

I have been running NetBeans for years on a high dpi screen. Zoom is not the 
solution.

-Tim

On Fri, Sep 7, 2018 at 10:21 AM Eirik Bakke <eba...@ultorg.com> wrote:

> I have added https://issues.apache.org/jira/browse/NETBEANS-1227 to 
> indicate that the NetBeans launcher should eventually declare itself 
> as DPI-aware, like JDKs javaw.exe already does.
>
> -- Eirik
>
> -----Original Message-----
> From: Eirik Bakke <eba...@ultorg.com>
> Sent: Friday, September 7, 2018 9:48 AM
> To: dev@netbeans.incubator.apache.org
> Subject: RE: Blurry font with NetBeans 9.0
>
> Hi, Christian.
>
> I have NetBeans 9.0 running very well on a Windows 10 HiDPI screen at 
> either 150% or 200% scaling. It's essential to use the latest Java--I 
> use 10.0.2. You also need to right click the "bin\netbeans64.exe" 
> file, or whichever shortcut you're using to open NetBeans, go to the 
> "Compatibility"
> tab, click "Change high DPI settings", "Override high DPI scaling 
> behavior", and select scaling performed by "Application". (This should 
> probably be built into the launcher at some point.)
>
> -- Eirik
>
> -----Original Message-----
> From: Christian Lenz <christian.l...@gmx.net>
> Sent: Friday, September 7, 2018 4:45 AM
> To: dev@netbeans.incubator.apache.org
> Subject: Blurry font with NetBeans 9.0
>
> Hey All,
>
> I wanted to test out NetBeans 9.0 and I must say, that I have a blurry 
> font. Please see the attached screenshot of comparing NetBeans 8.2 and 
> NetBeans 9.0:
> https://netbeans.slack.com/files/U2BLJ28NA/FCJC0D1C5/image.png
>
> It doesn’t matter of the LaF so I have it w/ or w/o the dacrula theme.
>
> My Enviroment is:
> Windows 10 (64 bit, latest release) with a zoom factor of 200% because 
> I have a HiDPI Surface book and I can’t set it to 100% because it is 
> far to small so this is not an Option.
>
> Here are the Infos from the About Dialog:
>
> Product Version: Apache NetBeans IDE 9.0 (Build
> incubator-netbeans-release-334-on-20180708)
> Updates: Updates available to version NetBeans 8.2 Patch 2 (weird but 
> has Nothing todo with my problem)
> Java: 10.0.1; Java HotSpot(TM) 64-Bit Server VM 10.0.1+10
> Runtime: Java(TM) SE Runtime Environment 10.0.1+10
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) 
> User
> directory: C:\Users\Chrl\AppData\Roaming\NetBeans\9.0
> Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\9.0
>
> Here is the thread in slack, where the guys tried to helped me, but 
> Nothing worked out:
> https://netbeans.slack.com/archives/C2BJDQ77A/p1535635507000100
>
> Do you Need smth more to help here? Did I miss smth About the blurry font?
>
>
> Cheers
>
> Chris
>
>
>  
> B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
> CB 
>   [  X  ܚX K  K[XZ[
>    ] ][  X  ܚX P  ]  X[ ˚[  X ] ܋ \ X  K ܙ B  ܈ Y  ] [ۘ[    [X[     K[XZ[
>    ] Z [    ]  X[ ˚[  X ] ܋ \ X  K ܙ B B  ܈  \   \  [  ܛX] [ۈ X  ]    H  ]
>  X[   XZ[ [    \      \ ]
>  B     ΋    Z K \ X  K ܙ   ۙ  Y[  K  \   ^KӑU  PS   XZ[ [    \   B B B
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: 
> dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
> --
http://timboudreau.com

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

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


Reply via email to