Skip to content

Fix font anti-alias on windows #5756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Dec 23, 2016

The properties:

  System.setProperty("awt.useSystemAAFontSettings", "on");
  System.setProperty("swing.aatext", "true");

actually works on Linux (where the hint helps X11 to enable antialiased rendering) but makes things worse on Windows where the outcome is exactly the opposite (anti-alias is disabled).

Previously those settings had no effect because they were executed after the initialization of the graphics. This is no more true after the merge of #5578, that moved the graphics initialization after commmand line parsing and consequently revealed the weird behaviour on windows.

Fix #5750

The properties:

      System.setProperty("awt.useSystemAAFontSettings", "on");
      System.setProperty("swing.aatext", "true");

actually works on Linux (where the hint helps X11 to enable antialiased
rendering) but makes things worse on Windows where the outcome is exactly
the opposite (anti-alias is disabled).

Previously those settings had no effect because they were executed
*after* the initialization of the graphics. This is no more true
after the merge of arduino#5578, that moved the graphics initialization
after commmand line parsing and consequently revealed the weird
behaviour on windows.

Fix arduino#5750
@PaoloP74
Copy link
Contributor

PaoloP74 commented Dec 24, 2016

Work fine on Windows 7 64bit. 👍
image

@SwiftNick
Copy link

Tested on Windows 10 Pro.
Looks fine now.
v1.8.1
1 8 1

v1.8.0
1 8 0

@nagyPista
Copy link

Fonts are ok now. (win7x64)
image

@cmaglie cmaglie merged commit 34fb802 into arduino:master Dec 28, 2016
@cmaglie cmaglie deleted the windows-fix-anti-alias branch December 28, 2016 10:09
@cmaglie cmaglie added this to the Release 1.8.1 milestone Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants