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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,16 @@ public class Base {
private final List<JMenuItem> recentSketchesMenuItems = new LinkedList<>();

static public void main(String args[]) throws Exception {
System.setProperty("awt.useSystemAAFontSettings", "on");
System.setProperty("swing.aatext", "true");
if (!OSUtils.isWindows()) {
// Those properties helps enabling anti-aliasing on Linux
// (but not on Windows where they made things worse actually
// and the font rendering becomes ugly).

// Those properties must be set before initializing any
// graphic object, otherwise they don't have any effect.
System.setProperty("awt.useSystemAAFontSettings", "on");
System.setProperty("swing.aatext", "true");
}
System.setProperty("java.net.useSystemProxies", "true");

if (OSUtils.isMacOS()) {
Expand Down
2 changes: 2 additions & 0 deletions build/shared/revisions.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARDUINO 1.8.1

[ide]
* Fixed font rendering not anti-aliased on Windows (regression)

ARDUINO 1.8.0 - 2016.12.20

Expand Down