Difference between pages "Fonts" and "CPU FLAGS"

(Difference between pages)
 
 
Line 1: Line 1:
== Install the packages ==
+
This page lists processor instruction sets that can be enabled on Funtoo Linux systems using the {{c|CPU_FLAGS_*}} variables.
Linux font quality is a chronic issue, by default fonts configuration far from ideal look. This can solved by rebuilding <tt>media-libs/fontconfig</tt> with the infinality USE flag which applies the infinality patch set. Infinality patches were previously available only in the lcd-filtering overlay and have now been merged into the main Funtoo portage tree.
+
  
<console>
+
==CPU_FLAGS_X86 ==
###i## echo "media-libs/fontconfig infinality" >> /etc/portage/package.use
+
###i## emerge -uN fontconfig
+
</console>
+
== Advanced configuration ==
+
=== Fontconfig ===
+
==== Default configuration ====
+
  
<console>
+
{{TableStart}}
###i## eselect fontconfig enable 10-antialias.conf
+
<tr><th>Flag</th><th>Introduced</th><th>Name</th><th></th></tr>
###i## eselect fontconfig enable 10-autohint.conf 
+
<tr><td>{{c|mmx}}</td><td>1997 (Pentium MMX)</td><td>MMX</td><td>See [[Wikipedia:MMX (instruction set)]] </td></tr>
###i## eselect fontconfig enable 10-hinting.conf 
+
<tr><td>{{c|mmxext}}</td><td>1999</td><td>AMD MMX Extensions</td><td>See [[Wikipedia:Extended MMX]]</td></tr>
###i## eselect fontconfig enable 10-hinting-slight.conf 
+
<tr><td>{{c|sse}}</td><td>1999 (Pentium III)</td><td>Streaming SIMD Extensions (SSE)</td><td>See [[Wikipedia:Streaming SIMD Extensions]]</td></tr>
###i## eselect fontconfig enable 10-sub-pixel-rgb.conf 
+
<tr><td>{{c|sse2}}</td><td>2001 (Pentium 4)</td><td>Streaming SIMD Extensions 2 (SSE2)</td><td>See [[Wikipedia:SSE2]]</td></tr>
###i## eselect fontconfig enable 11-lcdfilter-default.conf 
+
<tr><td>{{c|sse3}}</td><td>2004 (Pentium 4 Prescott)</td><td>Streaming SIMD Extensions 3 (SSE3/PNI)</td><td>See [[Wikipedia:SSE3]]</td></tr>
###i## eselect fontconfig enable 70-no-bitmaps.conf 
+
<tr><td>{{c|ssse3}}</td><td>2006 (Core 2 Woodcrest)</td><td>Supplemental Streaming SIMD Extensions 3 (SSSE3)</td><td>See [[Wikipedia:SSSE3]]</td></tr>
###i## eselect fontconfig disable 10-hinting-full.conf 
+
<tr><td>{{c|popcnt}}</td><td>2007</td><td>POPCNT and LZCNT</td><td>See [[Wikipedia:SSE4#POPCNT_and_LZCNT]]</td></tr>
###i## eselect fontconfig disable 10-hinting-medium.conf 
+
{{TableEnd}}
###i## eselect fontconfig disable 10-no-sub-pixel.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-bgr.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-vbgr.conf 
+
###i## eselect fontconfig disable 10-sub-pixel-vrgb.conf 
+
###i## eselect fontconfig disable 10-unhinted.conf</console>
+
===Linux configuration ===
+
 
+
Same as default configuration except:
+
<console>
+
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf
+
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf
+
</console>
+
=== Infinality’s configuration ===
+
 
+
Same as default configuration except:
+
<console>
+
###i## eselect fontconfig enable 15-hinting-tt-instructed-full.conf
+
###i## eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
###i## eselect fontconfig enable 25-hinting-small-arial-black-slight.conf
+
</console>
+
=== Windows configuration ===
+
 
+
Same as default except:
+
<console>
+
###i## eselect fontconfig disable 10-autohint.conf
+
###i## eselect fontconfig disable 10-hinting-slight.conf 
+
###i## eselect fontconfig enable 10-hinting-full.conf 
+
###i## eselect fontconfig enable 15-hinting-non-tt-instructed-slight.conf 
+
###i## eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
###i## eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
###i## eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
###i## eselect fontconfig enable 25-hinting-small-arial-black-slight.conf
+
</console>
+
=== OSX configuration ===
+
 
+
Same as default configuration except:
+
<console>
+
###i## eselect fontconfig disable 10-autohint.conf
+
###i## eselect fontconfig disable 10-hinting.conf 
+
###i## eselect fontconfig disable 10-hinting-slight.conf 
+
###i## eselect fontconfig enable 10-unhinted.conf 
+
###i## eselect fontconfig enable 15-hinting-tt-instructed-none.conf
+
</console>
+
== Freetype ==
+
Freetype can be configured through environment variables (see <tt>/etc/env.d/99lcdfilter</tt> for a list of the variables and their description). Those variables can be overridden on a per-user basis by either redefining them in a startup file (such as <tt>~/.bash_profile</tt>) or by sourcing the <tt>/usr/lib/ft-settings.sh</tt> script with the desired style in parameter (you can, of course, source the script from a startup file).
+
 
+
usage: source ft-settings.sh <style>
+
 
+
<console>
+
Possible styles:  
+
  default      - Use default settings.  A compromise that should please most people 
+
  osx          - Simulate OSX rendering 
+
  ubuntu      - Simulate UBUNTU rendering 
+
  linux        - Generic Linux style - no snapping or certain other tweaks 
+
  windows      - Simulate Windows rendering 
+
  vanilla      - Just subpixel hinting
+
 
+
Infinality styles: 
+
  classic      - Infinality rendering circa 2010. No snapping 
+
  nudge        - CLASSIC with lightly stem snapping and tweaks 
+
  push        - CLASSIC with medium stem snapping and tweaks 
+
  shove        - Full stem snapping and tweaks without sharpening 
+
  sharpened    - Full stem snapping, tweaks, and Windows-style sharpening 
+
  infinality  - Settings used by Infinality
+
</console>
+
== LibXft ==
+
Only legacy programs still use libXft. The default configuration is defined in <tt>/usr/share/X11/app-defaults/Xft</tt>. It can be overriden on a per-user basis in the <tt>~/.Xresources</tt> or <tt>~/.Xdefaults</tt> files:
+
 
+
<console>
+
Xft.antialias:  1
+
Xft.autohint:  0 
+
Xft.dpi:        96 
+
Xft.hinting:    1 
+
Xft.hintstyle:  hintfull 
+
Xft.lcdfilter:  lcddefault 
+
Xft.rgba:      rgb
+
</console>
+
 
+
[[Category:HOWTO]]
+

Revision as of 18:55, March 26, 2015

This page lists processor instruction sets that can be enabled on Funtoo Linux systems using the CPU_FLAGS_* variables.

CPU_FLAGS_X86

FlagIntroducedName
mmx1997 (Pentium MMX)MMXSee Wikipedia:MMX (instruction set)
mmxext1999AMD MMX ExtensionsSee Wikipedia:Extended MMX
sse1999 (Pentium III)Streaming SIMD Extensions (SSE)See Wikipedia:Streaming SIMD Extensions
sse22001 (Pentium 4)Streaming SIMD Extensions 2 (SSE2)See Wikipedia:SSE2
sse32004 (Pentium 4 Prescott)Streaming SIMD Extensions 3 (SSE3/PNI)See Wikipedia:SSE3
ssse32006 (Core 2 Woodcrest)Supplemental Streaming SIMD Extensions 3 (SSSE3)See Wikipedia:SSSE3
popcnt2007POPCNT and LZCNTSee Wikipedia:SSE4#POPCNT_and_LZCNT