-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjava
46 lines (42 loc) · 2.25 KB
/
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
# Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2016-present Sven Greb <[email protected]>
# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://wiki.archlinux.org/index.php/Java_Runtime_Environment_fonts
# http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#aaFonts
# http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#xrender
# http://stackoverflow.com/questions/28327620/difference-between-java-options-java-tool-options-and-java-opts
# http://wiki.netbeans.org/FaqFontRendering
# java(1)
# javac(1)
# Sets the default system-wide JVM options.
#
# awt.useSystemAAFontSettings
# Use system settings for font anti-aliasing.
# sun.java2d.xrender
# Enable the XRender-based Java 2D rendering pipeline for modern X11-based desktops, offering improved graphics performance.
# swing.aatext
# Enable the font anti-aliasing for Swing-based applications.
#
# Constant names in braces are values for the "java.awt.RenderingHint" class.
#
# > awt.useSystemAAFontSettings
# - off,false,default (VALUE_TEXT_ANTIALIAS_DEFAULT)
# No anti-aliasing.
# - on (VALUE_TEXT_ANTIALIAS_ON)
# Full anti-aliasing without sub-pixel rendering
# - gasp (VALUE_TEXT_ANTIALIAS_GASP)
# Use the font's built-in hinting instructions with sub-pixel rendering, intended for use both on CRT and LCD .
# - lcd, lcd_hrgb (VALUE_TEXT_ANTIALIAS_LCD_HRGB)
# Anti-aliasing tuned for many popular LCD monitors with sub-pixel rendering, optimized for LCD.
# - lcd_hbgr (VALUE_TEXT_ANTIALIAS_LCD_HBGR)
# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (monitor upsidedown).
# - lcd_vrgb (VALUE_TEXT_ANTIALIAS_LCD_VRGB)
# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (monitor is vertical).
# - lcd_vbgr (VALUE_TEXT_ANTIALIAS_LCD_VBGR)
# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (vertical again but on other side).
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.xrender=true -Dswing.aatext=true"
export _JAVA_AWT_WM_NONREPARENTING=1