|
|
Line 1: |
Line 1: |
| == Install the packages == | | <noinclude> |
| 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.
| | This is the "Ebuild" template. |
| | It should be called in the following format: |
| | <pre> |
| | {{Ebuild |
| | |Summary= |
| | |CatPkg= |
| | |Maintainer= |
| | |Homepage= |
| | }} |
| | </pre> |
| | Edit the page to see the template text. |
| | </noinclude><includeonly>{{#widget:AddThis}}<div class="container"><div class="row"> |
| | <div class="col-md-3 col-md-push-9"> |
| | <b>[[CatPkg::{{{CatPkg|}}}]]</b> |
| | <hr>{{#vardefine:cat|{{#explode:{{{CatPkg}}}|/|0}}}}{{#vardefine:pkg|{{#explode:{{{CatPkg}}}|/|1}}}}{{#get_web_data:url=http://ports.funtoo.org/packages.xml|format=xml|use xpath|data=repo_id=/packages/category[@name='{{#var:cat}}']/package[@name='{{#var:pkg}}']/@repository}}{{#vardefine:repoid|{{#if:{{#external_value:repo_id}}|{{#external_value:repo_id}}|gentoo}}}}{{#set:RepoID={{#var:repoid}}}} |
| | <table border="0" width="100%"> |
| | {{#if: {{{Maintainer|}}} |<tr><td><i>Current Maintainer(s):</i></td><td>{{#arraymaptemplate:{{{Maintainer|}}}|MaintainerDisplay|,|<br>}}</td></tr> |}}<tr><td><i>Source Repository:</i></td><td>{{#ask:[[Category:Repositories]] [[Repository ID::{{#var:repoid}}]]}}</td></tr> {{#if: {{{Homepage|}}} |<tr><td></td><td>[[Homepage::{{{Homepage|}}}|Homepage]]</td></tr> |}}</table><hr> |
| | <b>Summary:</b> [[Summary::{{{Summary|}}}]] |
| | {{#get_web_data:url=http://127.0.0.1:8888/portage/meta/{{{CatPkg}}}|format=xml|use xpath|data=use=/package/@use}}{{#set:Use={{#external_value:use}}}}{{#if: {{#external_value:use}}| |
| | == Use Flags == |
| | {{#arraymaptemplate:{{#external_value:use}}|ExternUse|,|}} |
| | }} |
| | <div class="bs-head" style="text-decoration: underline; margin-bottom: 15px;">Funtoo News</div> |
| | {{NewsList|3}} |
| | [[News|View More News...]] |
|
| |
|
| <console> | | </div><div class="col-xs-12 col-md-9 col-md-pull-3">{{DISPLAYTITLE:{{PAGENAME}}}} |
| ###i## echo "media-libs/fontconfig infinality" >> /etc/portage/package.use
| | <div id="ebuild_header"><div id="ebuild_logo" style="padding-bottom: 1em;">[[File:ebuild.png|link=|frameless|class=img-responsive]]</div><div id="ebuild_title"> |
| ###i## emerge -uN fontconfig
| | = {{PAGENAME}} = |
| </console> | | </div></div> |
| == Advanced configuration == | | {{#seo: |
| === Fontconfig ===
| | |title=Package: {{PAGENAME}} ({{{CatPkg}}}) |
| ==== Default configuration ====
| | |keywords={{{CatPkg}}},ebuild,gentoo,funtoo |
| | | |description=A Funtoo Linux ebuild for {{{CatPkg}}}: {{{Summary|}}} |
| <console>
| | }}{{Tip|This is a wiki page. To edit it, {{CreateAccount}}. Then [[{{#special:userlogin}}|log in]] and then {{#formlink:form=Ebuild|link text=click here to edit this page|target={{FULLPAGENAME}}}}. See our [[Help:Funtoo_Editing_Guidelines|editing guidelines]] to becoming a wiki-editing pro.}} |
| ###i## eselect fontconfig enable 10-antialias.conf
| | </includeonly> |
| ###i## eselect fontconfig enable 10-autohint.conf
| |
| ###i## eselect fontconfig enable 10-hinting.conf
| |
| ###i## eselect fontconfig enable 10-hinting-slight.conf
| |
| ###i## eselect fontconfig enable 10-sub-pixel-rgb.conf
| |
| ###i## eselect fontconfig enable 11-lcdfilter-default.conf
| |
| ###i## eselect fontconfig enable 70-no-bitmaps.conf
| |
| ###i## eselect fontconfig disable 10-hinting-full.conf
| |
| ###i## eselect fontconfig disable 10-hinting-medium.conf
| |
| ###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]]
| |