debianfonts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
debianfonts [2006/11/08 02:01] – old revision restored 84.142.251.254 | debianfonts [2007/12/25 13:34] (current) – old revision restored ach | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Debian Font Configuration ====== | ||
+ | This is a description of how to setup a Debian system in a way that you have nice fonts in X and can display websites in various languages as the web designer intended it. | ||
+ | |||
+ | I assume you use [[Debian]] sarge (currently stable) with XFree 4.1.x | ||
+ | |||
+ | ===== Basic Packages ===== | ||
+ | |||
+ | We need some tools to manage fonts in Debian: | ||
+ | |||
+ | #> apt-get install defoma fontconfig ttmkfdir cabextract | ||
+ | |||
+ | The latter one is used to extract Microsoft exe file - we'll come to this later. | ||
+ | |||
+ | ===== X-Server Setup ===== | ||
+ | |||
+ | Now we need to edit the / | ||
+ | |||
+ | < | ||
+ | Section " | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | EndSection | ||
+ | </ | ||
+ | |||
+ | So what does it do? It tells X where to look for fonts. The order is important as the upper ones are checked first. So we use Defoma managed fonts first, then packaged truetype fonts and then our own. The '': | ||
+ | |||
+ | Restart the X server to make sure it obeys the new order. | ||
+ | |||
+ | ===== Setup Fontconfig ===== | ||
+ | |||
+ | Fontconfig is used by modern programs (eg. Mozilla Firefox) to find fonts. We will install our own fonts to ''/ | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Yip you guessed right this file is in XML syntax. If you don't have a '' | ||
+ | |||
+ | <code xml> | ||
+ | <?xml version=" | ||
+ | < | ||
+ | <!-- / | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | You can get a list of all fonts known to fontconfig with | ||
+ | |||
+ | $> fc-list | ||
+ | |||
+ | ===== Installing packaged fonts ===== | ||
+ | |||
+ | This is easy - just install the packages. Here is a list of packages I recommend. | ||
+ | |||
+ | These are the basic font X font files (in various encodings): | ||
+ | |||
+ | #> apt-get install xfonts-100dpi xfonts-100dpi-transcoded \ | ||
+ | | ||
+ | | ||
+ | |||
+ | The next one installs the very good and free bitstream fonts and some fonts distributed by Microsoft (including the famous "MS Comic Sans" ;-)) | ||
+ | |||
+ | #> apt-get install ttf-bitstream-vera msttcorefonts | ||
+ | |||
+ | And finally these contain some international and unicode characters | ||
+ | |||
+ | #> apt-get install ttf-junicode ttf-kochi-gothic ttf-kochi-mincho | ||
+ | |||
+ | ===== Installing aditional TTFs ===== | ||
+ | |||
+ | To have proper Unicodesupport when visiting foreign websites you need some unicode fonts. The best (most complete) known font is "Arial Unicode MS" once available for download from Microsoft, today only distributed with MS Office, but also at various other places on the web. I recommend [[coral> | ||
+ | |||
+ | To install the Arial font get it from the website and extract the exe file with cab extract: | ||
+ | |||
+ | $> wget http:// | ||
+ | $> cabextract aruniupd.exe | ||
+ | |||
+ | Then copy it to the local fontdir: | ||
+ | |||
+ | #> mkdir -p / | ||
+ | #> cp Arialuni.TTF / | ||
+ | |||
+ | Then update the fonts information in the directory | ||
+ | |||
+ | #> cd / | ||
+ | #> mkfontscale | ||
+ | #> mkfontdir | ||
+ | |||
+ | Okay let's do it again for the other files | ||
+ | |||
+ | $> wget http:// | ||
+ | $> wget http:// | ||
+ | $> wget http:// | ||
+ | $> wget http:// | ||
+ | $> wget http:// | ||
+ | $> # Gothic: | ||
+ | $> wget http:// | ||
+ | $> # Cherokee: | ||
+ | $> wget http:// | ||
+ | $> for font in *.zip; do unzip $font; done | ||
+ | $> | ||
+ | $> # Inuktitut: | ||
+ | $> wget http:// | ||
+ | $> # Khmer: | ||
+ | $> wget http:// | ||
+ | $> | ||
+ | #> cp *.TTF *.ttf / | ||
+ | #> cd / | ||
+ | #> mkfontscale | ||
+ | #> mkfontdir | ||
+ | |||
+ | ===== Links ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |
debianfonts.txt · Last modified: 2007/12/25 13:34 by ach