Improve default values for antialiasing on Mac

This commit is contained in:
Denis Fokin
2015-10-05 19:09:27 +03:00
parent 6aac21f3ee
commit 3971bf30fa
3 changed files with 5 additions and 1 deletions
@@ -294,6 +294,8 @@ public class UISettings extends SimpleModificationTracker implements PersistentS
UISettings uiSettings = getInstance();
g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
if (uiSettings != null) {
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false));
} else {
@@ -35,6 +35,8 @@ public class EditorUIUtil {
int lcdContrastValue = UIUtil.getLcdContrastValue();
g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
g2d.setRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST, lcdContrastValue);
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(true));
@@ -3078,7 +3078,7 @@ public class UIUtil {
// Evaluate the value depending on our current theme
if (lcdContrastValue == 0) {
if (SystemInfo.isMacIntel64) {
lcdContrastValue = UIUtil.isUnderDarcula() ? 100 : 250;
lcdContrastValue = isUnderDarcula() ? 140 : 200;
} else {
Map map = (Map)Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints");