Changeset 17807 in josm
- Timestamp:
- 2021-04-20T22:14:12+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17798 r17807 1034 1034 // Disable automatic POST retry after 5 minutes, see #17882 / https://bugs.openjdk.java.net/browse/JDK-6382788 1035 1035 Utils.updateSystemProperty("sun.net.http.retryPost", "false"); 1036 // Force text antialiasing, not including mappaint text1037 Utils.updateSystemProperty("awt.useSystemAAFontSettings", "on");1038 1036 } 1039 1037 -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java
r17798 r17807 4 4 import java.awt.Color; 5 5 import java.awt.Font; 6 import java.awt.Graphics;7 import java.awt.Graphics2D;8 import java.awt.RenderingHints;9 6 import java.io.IOException; 10 7 import java.io.InputStream; … … 25 22 26 23 /** 27 * Subclass of {@link JEditorPane} that adds a "native" context menu (cut/copy/paste/select all), forces text and bullet 28 * point antialiasing based on user preferences, and effectively uses JOSM user agent when performing HTTP request in 29 * {@link #setPage(URL)} method. 24 * Subclass of {@link JEditorPane} that adds a "native" context menu (cut/copy/paste/select all) 25 * and effectively uses JOSM user agent when performing HTTP request in {@link #setPage(URL)} method. 30 26 * @since 5886 31 27 */ … … 89 85 } 90 86 return conn.getContent(); 91 }92 93 @Override94 public void paintComponent(Graphics g) {95 // Force antialiasing within the JosmEditorPane for antialiased bullet points96 Graphics2D g2d = (Graphics2D) g.create();97 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);98 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);99 super.paintComponent(g2d);100 g2d.dispose();101 87 } 102 88
Note:
See TracChangeset
for help on using the changeset viewer.