https://wiki.archlinux.org/api.php?action=feedcontributions&user=2ion&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:20:32ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Java_Runtime_Environment_fonts&diff=387762Java Runtime Environment fonts2015-07-25T17:03:01Z<p>2ion: Correct wrong directory path for fallback fonts</p>
<hr />
<div>[[Category:Fonts]]<br />
[[ja:Java ランタイム環境のフォント]]<br />
{{Related articles start}}<br />
{{Related|Fonts}}<br />
{{Related|Font configuration}}<br />
{{Related|MS Fonts}}<br />
{{Related|X Logical Font Description}}<br />
{{Related articles end}}<br />
Some users may find the default Java fonts or the display mode of fonts in Java applications to be unpleasant. Several methods to improve the font display in the Oracle Java Runtime Environment (JRE) are available. These methods may be used separately, but many users will find they achieve better results by combining them.<br />
<br />
TrueType fonts appear to be the best supported format for use with Java.<br />
<br />
==Anti-aliasing==<br />
=== Basic settings ===<br />
<br />
[http://en.wikipedia.org/wiki/Antialiased_font Anti-aliasing] of fonts is available with Oracle Java 1.6 and OpenJDK on Linux. To do this system-wide, add the following line to {{ic|/etc/environment}}:<br />
<br />
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=''setting'''<br />
<br />
Where {{Ic|''setting''}} is one of the values:<br />
<br />
{| class="wikitable"<br />
! Setting<br />
! Description<br />
|-<br />
| {{Ic|off}}, {{Ic|false}}, {{Ic|default}}<br />
| No anti-aliasing<br />
|-<br />
| {{Ic|on}}<br />
| Full anti-aliasing<br />
|-<br />
| {{Ic|gasp}}<br />
| Use the font's built-in hinting instructions<br />
|-<br />
| {{Ic|lcd}}, {{Ic|lcd_hrgb}}<br />
| Anti-aliasing tuned for many popular LCD monitors<br />
|-<br />
| {{Ic|lcd_hbgr}}, {{Ic|lcd_vrgb}}, {{Ic|lcd_vbgr}}<br />
| Alternative LCD monitor setting<br />
|}<br />
<br />
The {{Ic|gasp}} and {{Ic|lcd}} settings work well in many instances. <br />
<br />
To optionally to use GTK look and feel, add the following line instead:<br />
<br />
_JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' ''<br />
<br />
{{Note|<br />
* The described Java options only work for applications that draw their GUI in Java, like Jdownloader, and not for applications which utilize Java as backend only, like Openoffice.org and Matlab.<br />
* '''TrueType''' fonts contain a '''g'''rid-fitting '''a'''nd '''s'''can-conversion '''p'''rocedure (''GASP'') table with the designer's recommendations for the font's display at different point sizes. Some sizes are recommended to be fully anti-aliased, others are to be hinted, and some are to be displayed as bitmaps. Combinations are sometimes used for certain point sizes.<br />
}}<br />
<br />
Specify the variable on the command line before the executable to try the new configuration:<br />
<br />
_JAVA_OPTIONS=''options'' ''exectuable'' <br />
<br />
Re-login for the changes to take effect.<br />
<br />
=== OpenJDK patch ===<br />
<br />
Even with anti-aliasing enforced through Java options, the resulting anti-aliasing may be inferior to native applications. This can be remedied with a patch to OpenJDK, available in the [[AUR]]:<br />
* Patched '''OpenJDK7''' is available as {{AUR|jre7-openjdk-infinality}}<br />
* Patched '''OpenJDK8''' is available as {{AUR|jre8-openjdk-infinality}} (also available from [[Unofficial user repositories#infinality-bundle|Infinality unofficial repository]])<br />
The patched version combines well with the [[Infinality]] patches to fontconfig and freetype.<br />
<br />
==Font selection==<br />
<br />
===TrueType fonts===<br />
<br />
Some Java applications may specify use of a particular TrueType font; these applications must be made aware of the directory path to the desired font. TrueType fonts are installed in the directory {{ic|/usr/share/fonts/TTF}}. Add the following line to {{ic|/etc/environment}} to enable these fonts.<br />
<br />
JAVA_FONTS=/usr/share/fonts/TTF<br />
<br />
Relogin for the change to take effect.<br />
<br />
===Fixing Mojibake (For JRE8)===<br />
Place font files under the directory below. Create the directory if it does not exist.<br />
<br />
/usr/lib/jvm/java-8-openjdk/jre/lib/fonts/fallback/</div>2ionhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X240&diff=374012Lenovo ThinkPad X2402015-05-17T14:30:19Z<p>2ion: Add useful resources to See Also section</p>
<hr />
<div>[[Category:Lenovo]]<br />
{{Poor writing|Reference to "current time" in the tip; generally too short - provides only a basic overview.}}<br />
<br />
The Lenovo X240 is the latest version of the Lenovo Ultrabook Series and also is a complete redesign of the X Series. This can be observed especially with devices like the touchpad, which has been changed to be a one-click touchpad instead of having the classic 5 button touchpad. The X240 is a very light device, weighing in at just 2.84 lbs (1.36 kg) and measuring 12.02" x 8.19" x 0.79".<br />
<br />
==== Tested Configuration ====<br />
{{Tip|Below were the tested configurations at the current time.}}<br />
{| class="wikitable sortable"<br />
! Feature !! X240 !! X240 (20AMS4SM00)<br />
|-<br />
|CPU||Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz||Intel(R) Core(TM) i5-4210U CPU @ 2.7GHz<br />
|-<br />
|Graphics||Intel HD 4400 - Haswell-ULT||Intel HD 4400 - Haswell-ULT<br />
|-<br />
|Ram||8 GB||8 GB<br />
|-<br />
|Disk||Samsung 5120 SSD||Seagate ST500LM000-SSHD-8GB<br />
|-<br />
|Display||12.5" IPS FHD (1920x1080)||12.5" IPS FHD (1920x1080)<br />
|-<br />
|Wireless||Intel Corporation Wireless 7260||Intel Corporation Wireless 7260<br />
|-<br />
|Built-in Battery||9 Cell||9 Cell<br />
|-<br />
|Additional Plugable Battery||6 Cell 19+||6 Cell 19+<br />
|-<br />
|Backlight Keyboard||Yes||Yes<br />
|-<br />
|ThinkLight||No||No<br />
|-<br />
|Fingerprint Scanner||Yes||Yes<br />
|-<br />
|Bluetooth||Yes||Yes<br />
|-<br />
|Camera||Yes||Yes<br />
|}<br />
<br />
=== System Configuration ===<br />
<br />
==== Use analog sound card by default in ALSA ====<br />
<br />
You likely need to change the ALSA default sound card if you want to output sound via line-out by default.<br />
<br />
Install the [https://www.archlinux.org/packages/?sort=&q=alsa-utils&maintainer=&flagged= alsa-utils] package, run {{ic|aplay -l}} and inspect its output:<br />
{{bc|<br />
**** List of PLAYBACK Hardware Devices ****<br />
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
}}<br />
<br />
The card that drives the analog line-out is in this case card #1. Create a global configuration file to make it the default:<br />
{{hc|$ cat /etc/asound.conf|<br />
defaults.ctl.card 1<br />
defaults.pcm.card 1<br />
defaults.timer.card 1<br />
}}<br />
<br />
Alternatively, the same configuration may be set in {{ic|$HOME/.asoundrc}}.<br />
<br />
==== Touchpad ====<br />
The touchpad works out of the box. You will need to install {{Pkg|xf86-input-synaptics}}.<br />
<br />
Some users may prefer to use the trackpoint over the touchpad. In that case, the touchpad can be disabled via {{ic|1=synclient TouchpadOff=1}}(Will be gone after re-login). See [[Synaptics]] for more information and options.<br />
<br />
==== TrackPoint ====<br />
The TrackPoint is usuable out of the box, but the default parameters for speed, sensitivity and inertia yield only insufficient navigation ability given the high-res display. The following udev configuration delivers a snappy experience:<br />
<br />
{{hc|$ cat /etc/udev/rules.d/10-trackpoint.rules|<br />
<nowiki><br />
SUBSYSTEM=="serio", DRIVERS=="psmouse", ACTION=="change", ENV{SERIO_TYPE}=="05", ATTR{press_to_select}="1", ATTR{sensitivity}="196", ATTR{speed}="255", ATTR{inertia}="4"<br />
</nowiki><br />
}}<br />
<br />
Consult the [http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint ThinkWiki] for other configuration possibilities such as scrolling.<br />
<br />
=== Caveats ===<br />
<br />
==== Common hardware problems ====<br />
<br />
[https://github.com/leoluk/thinkpad-stuff/wiki/Haswell-ThinkPad-problems This page] provides a list and links regarding common issues with X240 hardware.<br />
<br />
==== Grey noise with analog audio when audio is not muted ====<br />
<br />
On some X240 and other TP 4xx models, persisting grey noise is hearable when the audio mixer has not been muted. The issue has been [http://mailman.alsa-project.org/pipermail/alsa-devel/2014-December/085403.html reported to the ALSA developers], but as of now, the issue persists. Affected users are encouraged to report their situation in the linked thread.<br />
<br />
=== More later (ToDo) ===<br />
- kernel<br />
- powersave<br />
- fingerprint<br />
- backlight<br />
- keyboard<br />
<br />
== See also ==<br />
* [http://www.function.fr/tag/x240/ A user's configuration walk through]<br />
* [http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles_pdf/x240_hmm_en_sp40a26001.pdf Lenovo X240 Hardware Maintenance Manual]<br />
* [http://www.lenovo.com/shop/americas/content/user_guides/x240_ug_en.pdf Lenovo X240 User Guide]<br />
* [http://thinkwiki.de/X240 X240 on ThinkWiki.de (German)]<br />
* [http://www.thinkwiki.org/wiki/Category:X240 X240 on ThinkWiki.org]</div>2ionhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X240&diff=374011Lenovo ThinkPad X2402015-05-17T14:20:03Z<p>2ion: Document how to configure analog audio output as the ALSA default since automatic configuration defaults to the HDMI digital output</p>
<hr />
<div>[[Category:Lenovo]]<br />
{{Poor writing|Reference to "current time" in the tip; generally too short - provides only a basic overview.}}<br />
<br />
The Lenovo X240 is the latest version of the Lenovo Ultrabook Series and also is a complete redesign of the X Series. This can be observed especially with devices like the touchpad, which has been changed to be a one-click touchpad instead of having the classic 5 button touchpad. The X240 is a very light device, weighing in at just 2.84 lbs (1.36 kg) and measuring 12.02" x 8.19" x 0.79".<br />
<br />
==== Tested Configuration ====<br />
{{Tip|Below were the tested configurations at the current time.}}<br />
{| class="wikitable sortable"<br />
! Feature !! X240 !! X240 (20AMS4SM00)<br />
|-<br />
|CPU||Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz||Intel(R) Core(TM) i5-4210U CPU @ 2.7GHz<br />
|-<br />
|Graphics||Intel HD 4400 - Haswell-ULT||Intel HD 4400 - Haswell-ULT<br />
|-<br />
|Ram||8 GB||8 GB<br />
|-<br />
|Disk||Samsung 5120 SSD||Seagate ST500LM000-SSHD-8GB<br />
|-<br />
|Display||12.5" IPS FHD (1920x1080)||12.5" IPS FHD (1920x1080)<br />
|-<br />
|Wireless||Intel Corporation Wireless 7260||Intel Corporation Wireless 7260<br />
|-<br />
|Built-in Battery||9 Cell||9 Cell<br />
|-<br />
|Additional Plugable Battery||6 Cell 19+||6 Cell 19+<br />
|-<br />
|Backlight Keyboard||Yes||Yes<br />
|-<br />
|ThinkLight||No||No<br />
|-<br />
|Fingerprint Scanner||Yes||Yes<br />
|-<br />
|Bluetooth||Yes||Yes<br />
|-<br />
|Camera||Yes||Yes<br />
|}<br />
<br />
=== System Configuration ===<br />
<br />
==== Use analog sound card by default in ALSA ====<br />
<br />
You likely need to change the ALSA default sound card if you want to output sound via line-out by default.<br />
<br />
Install the [https://www.archlinux.org/packages/?sort=&q=alsa-utils&maintainer=&flagged= alsa-utils] package, run {{ic|aplay -l}} and inspect its output:<br />
{{bc|<br />
**** List of PLAYBACK Hardware Devices ****<br />
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
}}<br />
<br />
The card that drives the analog line-out is in this case card #1. Create a global configuration file to make it the default:<br />
{{hc|$ cat /etc/asound.conf|<br />
defaults.ctl.card 1<br />
defaults.pcm.card 1<br />
defaults.timer.card 1<br />
}}<br />
<br />
Alternatively, the same configuration may be set in {{ic|$HOME/.asoundrc}}.<br />
<br />
==== Touchpad ====<br />
The touchpad works out of the box. You will need to install {{Pkg|xf86-input-synaptics}}.<br />
<br />
Some users may prefer to use the trackpoint over the touchpad. In that case, the touchpad can be disabled via {{ic|1=synclient TouchpadOff=1}}(Will be gone after re-login). See [[Synaptics]] for more information and options.<br />
<br />
==== TrackPoint ====<br />
The TrackPoint is usuable out of the box, but the default parameters for speed, sensitivity and inertia yield only insufficient navigation ability given the high-res display. The following udev configuration delivers a snappy experience:<br />
<br />
{{hc|$ cat /etc/udev/rules.d/10-trackpoint.rules|<br />
<nowiki><br />
SUBSYSTEM=="serio", DRIVERS=="psmouse", ACTION=="change", ENV{SERIO_TYPE}=="05", ATTR{press_to_select}="1", ATTR{sensitivity}="196", ATTR{speed}="255", ATTR{inertia}="4"<br />
</nowiki><br />
}}<br />
<br />
Consult the [http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint ThinkWiki] for other configuration possibilities such as scrolling.<br />
<br />
=== Caveats ===<br />
<br />
==== Common hardware problems ====<br />
<br />
[https://github.com/leoluk/thinkpad-stuff/wiki/Haswell-ThinkPad-problems This page] provides a list and links regarding common issues with X240 hardware.<br />
<br />
==== Grey noise when audio is not muted ====<br />
<br />
On some X240 and other TP 4xx models, persisting grey noise is hearable when the audio mixer has not been muted. The issue has been [http://mailman.alsa-project.org/pipermail/alsa-devel/2014-December/085403.html reported to the ALSA developers], but as of now, the issue persists. Affected users are encouraged to report their situation in the linked thread.<br />
<br />
=== More later (ToDo) ===<br />
- kernel<br />
- powersave<br />
- fingerprint<br />
- backlight<br />
- keyboard</div>2ionhttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X240&diff=374008Lenovo ThinkPad X2402015-05-17T13:58:11Z<p>2ion: Add another system tested with Arch; report a usuable TrackPoint configuration; add section on commonly reported hardware-related issues/caveats</p>
<hr />
<div>[[Category:Lenovo]]<br />
{{Poor writing|Reference to "current time" in the tip; generally too short - provides only a basic overview.}}<br />
<br />
The Lenovo X240 is the latest version of the Lenovo Ultrabook Series and also is a complete redesign of the X Series. This can be observed especially with devices like the touchpad, which has been changed to be a one-click touchpad instead of having the classic 5 button touchpad. The X240 is a very light device, weighing in at just 2.84 lbs (1.36 kg) and measuring 12.02" x 8.19" x 0.79".<br />
<br />
==== Tested Configuration ====<br />
{{Tip|Below were the tested configurations at the current time.}}<br />
{| class="wikitable sortable"<br />
! Feature !! X240 !! X240 (20AMS4SM00)<br />
|-<br />
|CPU||Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz||Intel(R) Core(TM) i5-4210U CPU @ 2.7GHz<br />
|-<br />
|Graphics||Intel HD 4400 - Haswell-ULT||Intel HD 4400 - Haswell-ULT<br />
|-<br />
|Ram||8 GB||8 GB<br />
|-<br />
|Disk||Samsung 5120 SSD||Seagate ST500LM000-SSHD-8GB<br />
|-<br />
|Display||12.5" IPS FHD (1920x1080)||12.5" IPS FHD (1920x1080)<br />
|-<br />
|Wireless||Intel Corporation Wireless 7260||Intel Corporation Wireless 7260<br />
|-<br />
|Built-in Battery||9 Cell||9 Cell<br />
|-<br />
|Additional Plugable Battery||6 Cell 19+||6 Cell 19+<br />
|-<br />
|Backlight Keyboard||Yes||Yes<br />
|-<br />
|ThinkLight||No||No<br />
|-<br />
|Fingerprint Scanner||Yes||Yes<br />
|-<br />
|Bluetooth||Yes||Yes<br />
|-<br />
|Camera||Yes||Yes<br />
|}<br />
<br />
=== System Configuration ===<br />
<br />
==== Touchpad ====<br />
The touchpad works out of the box. You will need to install {{Pkg|xf86-input-synaptics}}.<br />
<br />
Some users may prefer to use the trackpoint over the touchpad. In that case, the touchpad can be disabled via {{ic|1=synclient TouchpadOff=1}}(Will be gone after re-login). See [[Synaptics]] for more information and options.<br />
<br />
==== TrackPoint ====<br />
The TrackPoint is usuable out of the box, but the default parameters for speed, sensitivity and inertia yield only insufficient navigation ability given the high-res display. The following udev configuration delivers a snappy experience:<br />
<br />
{{hc|$ cat /etc/udev/rules.d/10-trackpoint.rules|<br />
<nowiki><br />
SUBSYSTEM=="serio", DRIVERS=="psmouse", ACTION=="change", ENV{SERIO_TYPE}=="05", ATTR{press_to_select}="1", ATTR{sensitivity}="196", ATTR{speed}="255", ATTR{inertia}="4"<br />
</nowiki><br />
}}<br />
<br />
Consult the [http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint ThinkWiki] for other configuration possibilities such as scrolling.<br />
<br />
=== Caveats ===<br />
<br />
==== Common hardware problems ====<br />
<br />
[https://github.com/leoluk/thinkpad-stuff/wiki/Haswell-ThinkPad-problems This page] provides a list and links regarding common issues with X240 hardware.<br />
<br />
==== Grey noise when audio is not muted ====<br />
<br />
On some X240 and other TP 4xx models, persisting grey noise is hearable when the audio mixer has not been muted. The issue has been [http://mailman.alsa-project.org/pipermail/alsa-devel/2014-December/085403.html reported to the ALSA developers], but as of now, the issue persists. Affected users are encouraged to report their situation in the linked thread.<br />
<br />
=== More later (ToDo) ===<br />
- kernel<br />
- powersave<br />
- fingerprint<br />
- backlight<br />
- keyboard</div>2ion