asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 295 forks source link

Blured Font in Editor and preview when using AsciidocFX 1.7.0 and up with windows scaling 120% #497

Open TheTwo1 opened 3 years ago

TheTwo1 commented 3 years ago

When using version 1.6.9 the font is rendered sharp in editor and preview. When installing version 1.7.0 and up, the font is rendered blury when using a scaling factor of 120% in Windows 10.

There seems to be added some anti-aliasing to the font rendereing that does not work together with the scaling of windows 10.

Is this something that can be fixed with an option or is the rendering engine changed?

rahmanusta commented 3 years ago

New release is available https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4

Please check if that fix your issue.

TheTwo1 commented 3 years ago

I have installed the new version, but the font in editor and preview has not changed.

rahmanusta commented 3 years ago

Can you share some screenshots?

TheTwo1 commented 3 years ago

Hi here the comparison between the two versions:

Version 1.7.4: image

Version 1.6.9 image

rahmanusta commented 3 years ago

Hi, could you please reinstall https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 and check?

There can be diffefent reasons but new update may fix the issue. If the issue is still valid, you can try changing code fonts in settings and some may give better quality.

TheTwo1 commented 3 years ago

Hi, thank you for the support.

The blurriness in comparison to the old version still exists but is now better.

I am not sure why all other fonts in ASCIIDOCFX are perfectly sharp but not in the editor. There seems to be some anti aliasing done in the editor that does not work well with the scaling of windows 10. Is it possible to configure the editor to do no anti aliasing at all with the font?

rahmanusta commented 3 years ago

Settings in Known issues(Text Artifacts (Rainbowing) on Text ) may help

https://github.com/asciidocfx/AsciidocFX#known-issues