Difference between pages "Fonts" and "Stage 4 Test"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(LibXft)
 
(Created page with "Assuming Funtoo Current. == Kernel == <pre> emerge vanilla-sources </pre> == Kernel .config == <pre> mv /usr/src/linux/.config /usr/src/linux/.config-old git clone https://g...")
 
Line 1: Line 1:
== LCD-Filtering overlay ==
+
Assuming Funtoo Current.
Funtoo Linux planning to integrate LCD-filtering overlay into main tree in order to have very good font experience. Before that the overlay available via layman and manual steps required as described below. Overlay consist of patched versions of <tt>cairo</tt>, <tt>libXft</tt>, <tt>fontconfig</tt>, <tt>freetype</tt> with the aim of getting nice hinting and rendering, emulate the Ubuntu/MS Windows/Mac OS X fonts appearance.
+
== Install the packages ==
+
<console> # emerge -uN fontconfig freetype cairo libXft</console>
+
== Advanced configuration ==
+
=== Fontconfig ===
+
  
=== Default configuration ===
+
== Kernel ==
 +
<pre>
 +
emerge vanilla-sources
 +
</pre>
  
<console>eselect fontconfig enable 10-antialias.conf
+
== Kernel .config ==
eselect fontconfig enable 10-autohint.conf 
+
<pre>
eselect fontconfig enable 10-hinting.conf 
+
mv /usr/src/linux/.config /usr/src/linux/.config-old
eselect fontconfig enable 10-hinting-slight.conf 
+
git clone https://gist.github.com/2604445.git
eselect fontconfig enable 10-sub-pixel-rgb.conf 
+
cp 2604445/usrsrclinux.config/txt /usr/src/linux/.config
eselect fontconfig enable 11-lcdfilter-default.conf 
+
</pre>
eselect fontconfig enable 70-no-bitmaps.conf 
+
eselect fontconfig disable 10-hinting-full.conf 
+
eselect fontconfig disable 10-hinting-medium.conf 
+
eselect fontconfig disable 10-no-sub-pixel.conf 
+
eselect fontconfig disable 10-sub-pixel-bgr.conf 
+
eselect fontconfig disable 10-sub-pixel-vbgr.conf 
+
eselect fontconfig disable 10-sub-pixel-vrgb.conf 
+
eselect fontconfig disable 10-unhinted.conf</console>
+
===Linux configuration ===
+
  
Same as default configuration except:
+
== Building ==
<console>eselect fontconfig enable 21-hinting-small-aquabase-slight.conf
+
If you have lvm add --lvm
eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
<pre>
eselect fontconfig enable 22-hinting-courier-italic-slight.conf</console>
+
genkernel --no-mrproper all
=== Infinality’s configuration ===
+
</pre>
  
Same as default configuration except:
+
== Update boot ==
<console>eselect fontconfig enable 15-hinting-tt-instructed-full.conf
+
You may need to view <pre> man boot.conf </pre> for a proper entry. Or ask hoverbear on freenode.
eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
<pre>
eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
boot-update
eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
</pre>
eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
eselect fontconfig enable 25-hinting-small-arial-black-slight.conf</console>
+
=== Windows configuration ===
+
 
+
Same as default except:
+
<console>eselect fontconfig disable 10-autohint.conf
+
eselect fontconfig disable 10-hinting-slight.conf 
+
eselect fontconfig enable 10-hinting-full.conf 
+
eselect fontconfig enable 15-hinting-non-tt-instructed-slight.conf 
+
eselect fontconfig enable 20-hinting-small-fonts-slight.conf 
+
eselect fontconfig enable 21-hinting-small-aquabase-slight.conf 
+
eselect fontconfig enable 21-hinting-small-browallia-slight.conf 
+
eselect fontconfig enable 22-hinting-courier-italic-slight.conf 
+
eselect fontconfig enable 25-hinting-small-arial-black-slight.conf</console>
+
=== OSX ===
+
 
+
Same as default configuration except:
+
<console>eselect fontconfig disable 10-autohint.conf
+
eselect fontconfig disable 10-hinting.conf 
+
eselect fontconfig disable 10-hinting-slight.conf 
+
eselect fontconfig enable 10-unhinted.conf 
+
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]]
+

Latest revision as of 18:17, 5 May 2012

Assuming Funtoo Current.

Contents

[edit] Kernel

emerge vanilla-sources

[edit] Kernel .config

mv /usr/src/linux/.config /usr/src/linux/.config-old
git clone https://gist.github.com/2604445.git
cp 2604445/usrsrclinux.config/txt /usr/src/linux/.config

[edit] Building

If you have lvm add --lvm

genkernel --no-mrproper all

[edit] Update boot

You may need to view
 man boot.conf 
for a proper entry. Or ask hoverbear on freenode.
boot-update