https://wiki.archlinux.org/api.php?action=feedcontributions&user=Akela1101&feedformat=atomArchWiki - User contributions [en]2024-03-28T17:11:22ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Fonts&diff=154665Fonts2011-08-31T17:28:20Z<p>Akela1101: /* Japanese */</p>
<hr />
<div>[[Category:Fonts (English)]] [[Category:Graphics and DTP (English)]]<br />
[[Category:Eye candy (English)]]<br />
{{expansion}}<br />
{{i18n|Fonts}}<br />
{{Article summary start}}<br />
{{Article summary text|Covers the selection and installation of fonts on Arch Linux}}<br />
{{Article summary heading|Legal}}<br />
{{Article summary text|Certain font licenses may impose some legal limitations}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Font Configuration}}: Font setup and beautification<br />
{{Article summary wiki|Java Fonts - Sun JRE}}: Fonts specific to Sun's Java machine<br />
{{Article summary wiki|MS Fonts}}: Adding Microsoft fonts and mimicking Windows' font settings<br />
{{Article summary end}}<br />
== Font formats ==<br />
<br />
Most computer fonts used today are in either ''bitmap'' or ''outline'' data formats. Bitmap fonts store fixed images for each glyph in each typeface and point size. Outline or ''vector'' fonts store characters as instructions for drawing each glyph's lines and curves. Outline fonts scale smoothly in size over a wide range.<br />
<br />
Common font filename extensions include:<br />
<br />
* {{Codeline|bdf}} and {{Codeline|bdf.gz}} – bitmap fonts, ''b''itmap ''d''istribution ''f''ormat and gzip compressed {{Codeline|bdf}}<br />
* {{Codeline|pcf}} and {{Codeline|pcf.gz}} – bitmaps, ''p''ortable ''c''ompiled ''f''ont and gzip compressed {{Codeline|pcf}}<br />
* {{Codeline|psf}}, {{Codeline|psfu}}, {{Codeline|psf.gz}} and {{Codeline|psfu.gz}} – bitmaps, ''P''C ''s''creen ''f''ont, ''P''C ''s''creen ''f''ont ''U''nicode and the gzipped versions (not compatible with Xorg)<br />
* {{Codeline|pfa}} and {{Codeline|pfb}} – outline fonts, ''P''ostScript ''f''ont ''A''SCII and ''P''ostScript ''f''ont ''b''inary. PostScript fonts carry built-in printer instructions.<br />
* {{Codeline|ttf}} – outline, ''T''rue''T''ype ''f''ont. Originally designed as a replacement for the PostScript fonts.<br />
* {{Codeline|otf}} – outline, ''O''pen''T''ype ''f''ont. TrueType with PostScript typographic instructions. <br />
<br />
For most purposes, the technical differences between TrueType and OpenType can be ignored, some fonts with a {{Codeline|ttf}} extension are actually OpenType fonts.<br />
<br />
=== Other formats ===<br />
<br />
The typesetting application, ''TeX,'' and its companion font software, ''Metafont,'' render characters using their own methods. Some of the file extensions used for fonts by these two programs are {{Codeline|*pk}}, {{Codeline|*gf}}, {{Codeline|mf}} and {{Codeline|vf}}.<br />
<br />
''FontForge,'' a font editing application, can store fonts in its native text-based format, {{Codeline|sfd}}, ''s''pline ''f''ont ''d''atabase.<br />
<br />
== Installation ==<br />
<br />
Various methods of installing fonts.<br />
<br />
=== Pacman ===<br />
<br />
Fonts and font collections in the enabled repositories can be installed using [[Pacman|pacman]]. Available fonts may be found by using:<br />
$ pacman -Ss font<br />
Or to search for {{Codeline|ttf}} fonts only:<br />
$ pacman -Ss ttf<br />
<br />
Some fonts like <i>terminus</i> are installed in {{Filename|/usr/share/fonts/local}}, which is not added to the font path by default. By adding the following lines to {{Filename|~/.xinitrc}}<br />
<pre><br />
xset +fp /usr/share/fonts/local<br />
xset fp rehash<br />
</pre><br />
the fonts can be used in X11.<br />
<br />
=== Creating a package ===<br />
<br />
If you want to give pacman the ability to manage your fonts, you can create an Arch package. These can also be shared with the community in the [[AUR]]. Here is an example of how to create a basic package. To learn more about building packages, read [[PKGBUILD]].<br />
<br />
<pre><br />
pkgname=ttf-fontname<br />
pkgver=1.0<br />
pkgrel=1<br />
depends=('fontconfig' 'xorg-font-utils')<br />
pkgdesc="custom fonts"<br />
arch=('any')<br />
source=(http://someurl.org/$pkgname.tar.bz2)<br />
install=$pkgname.install<br />
<br />
build()<br />
{<br />
mkdir -p $pkgdir/usr/share/fonts/TTF<br />
cp $srcdir/$pkgname/*.ttf $pkgdir/usr/share/fonts/TTF<br />
}<br />
</pre><br />
<br />
This PKGBUILD assumes the fonts are TrueType. An install file ({{Filename|ttf-fontname.install}}) will also need to be created to update the font cache:<br />
<br />
<pre><br />
post_install()<br />
{<br />
echo -n "Updating font cache... "<br />
fc-cache -fs >/dev/null<br />
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1<br />
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1<br />
echo "done"<br />
}<br />
<br />
post_upgrade()<br />
{<br />
post_install<br />
}<br />
</pre><br />
<br />
=== Manual installation ===<br />
<br />
The recommended way of adding fonts to your system that are not in the repositories is described in [[#Creating a package]]. This gives pacman the ability to be able to remove or update them at a later time. Fonts can alternately be installed manually as well. <br />
<br />
To install fonts system-wide (available for all users), move the folder to the {{Filename|/usr/share/fonts/}} directory. To install fonts for only a single user, use {{Filename|~/.fonts/}} instead.<br />
<br />
Also you may need to update {{Filename|/etc/X11/xorg.conf}} or {{Filename|/etc/xorg.conf}} with the new directory. Search for {{Codeline|FontPath}} to find the correct location within the file to add your new path. See [[#Fonts with Xorg]] for more detail.<br />
<br />
Then update the fontconfig font cache:<br />
<br />
$ fc-cache -vf<br />
<br />
==== Older applications ====<br />
<br />
With older applications that do not support fontconfig (e.g. GTK1 applications, and {{Codeline|xfontsel}}) the index will need to be created in the font directory:<br />
<br />
$ mkfontscale<br />
$ mkfontdir<br />
<br />
Or to include more than one folder with one command:<br />
<br />
$ for dir in /font/dir1/ /font/dir2/; do xset +fp $dir; done && xset fp rehash<br />
<br />
At times the X server may fail to load the fonts directory and you will need to rescan all the {{Filename|fonts.dir}} files:<br />
<br />
# xset +fp /usr/share/fonts/misc # Inform the X server of new directories<br />
# xset fp rehash # Forces a new rescan<br />
<br />
To check that the font(s) is included:<br />
<br />
$ xlsfonts | grep fontname<br />
<br />
=== Pango Warnings ===<br />
When [http://www.pango.org/ Pango] is in use on your system it will read from [http://fontconfig.org/wiki/ fontconfig] to sort out where to source fonts.<br />
<br />
(process:5741): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'<br />
(process:5741): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'<br />
<br />
If you are seeing errors similar to this and/or seeing blocks instead of characters in your application then you need to add fonts and update the font cache. This example uses the {{Package Official|ttf-liberation}} fonts to illustrate the solution and runs as root to enable them system-wide.<br />
<br />
# pacman -S ttf-liberation<br />
-- output abbreviated, assumes installation succeeded -- <br />
<br />
# fc-cache -vfs<br />
/usr/share/fonts: caching, new cache contents: 0 fonts, 3 dirs<br />
/usr/share/fonts/TTF: caching, new cache contents: 16 fonts, 0 dirs<br />
/usr/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs<br />
/usr/share/fonts/encodings/large: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs<br />
/var/cache/fontconfig: cleaning cache directory <br />
fc-cache: succeeded<br />
<br />
<br />
You can test for a default font being set like so:<br />
<br />
# fc-match<br />
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"<br />
<br />
=== Fonts with Xorg ===<br />
<br />
In order for [[Xorg]] to find and use your newly installed fonts, you must add the font paths to {{Filename|/etc/xorg.conf}} (another Xorg configuration file may work too).<br />
<br />
Here is an example of the section that must be added to {{Filename|/etc/xorg.conf}}. Add or remove paths based on your particular font requirements.<br />
# Let Xorg know about the custom font directories<br />
Section "Files"<br />
FontPath "/usr/share/fonts/100dpi"<br />
FontPath "/usr/share/fonts/75dpi"<br />
FontPath "/usr/share/fonts/cantarell"<br />
FontPath "/usr/share/fonts/cyrillic"<br />
FontPath "/usr/share/fonts/encodings"<br />
FontPath "/usr/share/fonts/local"<br />
FontPath "/usr/share/fonts/misc"<br />
FontPath "/usr/share/fonts/OTF"<br />
FontPath "/usr/share/fonts/TTF"<br />
FontPath "/usr/share/fonts/util"<br />
EndSection<br />
<br />
==Font packages==<br />
This is a selective list that includes many font packages from the [[AUR]] along with those in the official repositories. Fonts are tagged "Unicode" if they have wide Unicode support, see the project or Wikipedia pages for detail.<br />
<br />
===Braille===<br />
*{{Package Official|ttf-ubraille}} - Font containing Unicode symbols for ''braille''<br />
<br />
===International users===<br />
<br />
====Arabic====<br />
*{{Package AUR|ttf-sil-lateef}} - Unicode Arabic font from SIL ''(AUR)''<br />
*{{Package AUR|ttf-sil-scheherazade}} - Unicode Arabic font from SIL ''(AUR)''<br />
*{{Package AUR|arabeyes-fonts}} - Collection of free Arabic fonts ''(AUR)''<br />
<br />
====Chinese, Japanese, Korean, Vietnamese====<br />
<br />
=====(Mainly) Chinese=====<br />
*{{Package AUR|wqy-microhei}} - A Sans-Serif style high quality CJK outline font. ''(AUR)''<br />
*{{Package Official|wqy-zenhei}} - Hei Ti Style (sans-serif) Chinese Outline font embedded with bitmapped Song Ti (also supporting Japanese (partial) and Korean characters).<br />
*{{Package Official|ttf-arphic-ukai}} - ''Kaiti'' (brush stroke) Unicode font (enabling anti-aliasing is suggested)<br />
*{{Package Official|ttf-arphic-uming}} - ''Mingti'' (printed) Unicode font<br />
*{{Package Official|ttf-fireflysung}} - ''New Sung'' font<br />
*{{Package Official|wqy-bitmapfont}} - Bitmapped Song Ti (serif) Chinese font<br />
*{{Package Official|ttf-hannom}} - Chinese and Vietnamese TrueType font<br />
<br />
=====Japanese=====<br />
*{{Package Official|ttf-sazanami}} - Japanese free TrueType font to alternate with the ttf-kochi font family. <br />
*{{Package AUR|ttf-kochi-substitute}} - High quality Japanese TrueType fonts. It has bitmap hinting information, so it's beautiful and not jagged to display on the CRT. <br />
*{{Package AUR|otf-ipafont}} - Japanese Gothic (san-serif) and Mincho (serif) font set; one of the highest quality open source fonts. Default of openSUSE-ja. ''(AUR)''<br />
*{{Package AUR|ttf-vlgothic}} - Japanese Gothic fonts. Default of Debian/Fedora/Vine Linux ''(AUR)''<br />
*{{Package AUR|ttf-ipa-mona}}, {{Package AUR|ttf-monapo}} - Japanese fonts to show [http://en.wikipedia.org/wiki/2channel_Shift_JIS_art 2channel Shift JIS art] properly. ''(AUR)''<br />
<br />
=====Korean=====<br />
*{{Package Official|ttf-baekmuk}} - Collection of Korean TrueType fonts<br />
*{{Package AUR|ttf-alee}} - Set of free Hangul TrueType fonts ''(AUR)''<br />
*{{Package AUR|ttf-unfonts-core}} - Un fonts (default Baekmuk fonts may be unsatisfactory) (''AUR'')<br />
<br />
====Cyrillic====<br />
''Also see [[#Monospace]], [[#Sans]] and [[#Serif]]''<br />
*{{Package AUR|font-arhangai}} - Mongolian Cyrillic (''AUR'')<br />
*{{Package AUR|ttf-pingwi-typography}} - PingWi Typography (PWT) fonts (''AUR'')<br />
<br />
====Greek====<br />
Almost all Unicode fonts contain the Greek character set (polytonic included). Some additional font packages, which might not be contain the complete Unicode set but utilize high quality Greek (and Latin, of course) typefaces are:<br />
*{{Package AUR|otf-gfs}} - Selection of OpenType fonts from the Greek Font Society ''(AUR)''<br />
*{{Package AUR|ttf-mgopen}} - Professional TrueType fonts from Magenta ''(AUR)''<br />
<br />
====Hebrew====<br />
*{{Package Official|culmus}} - Nice collection of free Hebrew fonts<br />
<br />
====Indic====<br />
*{{Package Official|ttf-freebanglafont}} - Font for Bangla<br />
*{{Package Official|ttf-indic-otf}} - Indic OpenType Fonts collection (containing ttf-freebanglafont)<br />
<br />
====Khmer====<br />
*{{Package Official|ttf-khmer}} - Font covering glyphs for Khmer language<br />
*[http://code.google.com/webfonts/family?family=Hanuman&subset=khmer Hanuman] ({{Package AUR|ttf-google-webfonts}})<br />
<br />
====Sinhala====<br />
*{{Package AUR|ttf-lklug}} - Sinhala Unicode font (''AUR'')<br />
<br />
====Tamil====<br />
*{{Package AUR|ttf-tamil}} - Tamil Unicode fonts (''AUR'')<br />
<br />
====Thai====<br />
*{{Package Official|ttf-thai}} - Font covering glyphs for Thai<br />
<br />
===Math===<br />
*{{Package Official|font-mathematica}} - Mathematica fonts by Wolfram Research, Inc.<br />
*{{Package AUR|ttf-mathtype}} - MathType fonts ''(AUR)''<br />
*{{Package AUR|ttf-computer-modern-fonts}} - Flagged out of date as of 2009-11-14 ''(AUR)''<br />
<br />
===Microsoft fonts===<br />
See [[MS Fonts]].<br />
<br />
===Monospaced===<br />
Here are some suggestions. Every user has their own preference, experiment to find one that suits you. <br />
If you won't like to try one by one, there's an opinion from Dan Benjamin on his blog: [http://hivelogic.com/articles/top-10-programming-fonts ''Top 10 Programming Fonts''].<br />
<br />
Here's a big list of fonts by Trevor Lowing: http://www.lowing.org/fonts/<br />
<br />
====TrueType====<br />
<br />
*[[Wikipedia:Andalé Mono|Andalé Mono]] ({{Package AUR|ttf-ms-fonts}})<br />
*Anka/Coder ({{Package AUR|ttf-anka-coder}})<br />
*Anonymous Pro ({{Package AUR|ttf-anonymous-pro}})<br />
*[[Wikipedia:Bitstream Vera|Bitstream Vera Mono]] ({{Package Official|ttf-bitstream-vera}})<br />
*[[Wikipedia:Consolas|Consolas]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:Courier New|Courier New]] ({{Package AUR|ttf-ms-fonts}})<br />
*Cousine ({{Package AUR|ttf-google-webfonts}}) - Chrome/Chromium OS replacement for Courier New (metric-compatible)<br />
*[[Wikipedia:DejaVu fonts|DejaVu Sans Mono]] ({{Package Official|ttf-dejavu}}) - Unicode<br />
*[[Wikipedia:Droid (font)|Droid Sans Mono]] ({{Package AUR|ttf-droid}}, included in {{Package AUR|ttf-google-webfonts}})<br />
*Envy Code R ({{Package AUR|ttf-envy-code-r}})<br />
*[[Wikipedia:GNU FreeFont|FreeMono]] ({{Package Official|ttf-freefont}}) - Unicode<br />
*[[Wikipedia:Inconsolata|Inconsolata]] ({{Package Official|ttf-inconsolata}})<br />
*[[Wikipedia:Inconsolata|Inconsolata-g]] ({{Package AUR|ttf-inconsolata-g}}) - adds some programmer-friendly modifications<br />
*[[Wikipedia:Liberation fonts|Liberation Mono]] ({{Package Official|ttf-liberation}}) - Alternative to Courier New (metric-compatible)<br />
*[[Wikipedia:Lucida Console|Lucida Console]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Lucida Typewriter|Lucida Typewriter]] (included in package {{Package Official|jre}})<br />
*[[Wikipedia:Monaco (typeface)|Monaco]] ({{Package Official|monaco-linux-font}})<br />
*Monofur ({{Package AUR|ttf-monofur}})<br />
<br />
====Bitmap====<br />
<br />
*Default 8x16<br />
*Dina ({{Package Official|dina-font}})<br />
*Lime ({{Package Official|artwiz-fonts}})<br />
*[[Wikipedia:ProFont|ProFont]] ({{Package Official|profont}})<br />
*[[Wikipedia:Proggy Programming Fonts|Proggy Programming Fonts]] ({{Package AUR|proggyfonts}})<br />
*Proggy opti cyrillic ({{Package AUR|proggyopticyr-font}})<br />
*Tamsyn ({{Package AUR|tamsyn-font}})<br />
*[[Wikipedia:Terminus (typeface)|Terminus]] ({{Package Official|terminus-font}})<br />
*Unifont (glyphs like ಠ_ಠ (look of disapproval)) ({{Package Official|bdf-unifont}})<br />
<br />
===Sans-serif===<br />
<br />
*[http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=andika Andika] ({{Package AUR|ttf-andika}}, included in {{Package AUR|ttf-sil-fonts}})<br />
*[[Wikipedia:Arial|Arial]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Arial Black|Arial Black]] ({{Package AUR|ttf-ms-fonts}})<br />
*Arimo ({{Package AUR|ttf-google-webfonts}}) - Chrome/Chromium OS replacement for Arial (metric-compatible)<br />
*[[Wikipedia:Calibri|Calibri]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:Candara|Candara]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:Constantia (typeface)|Constantia]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:Corbel (typeface)|Corbel]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:DejaVu fonts|DejaVu Sans]] ({{Package Official|ttf-dejavu}}) - Unicode<br />
*[[Wikipedia:Droid (font)|Droid Sans]] ({{Package AUR|ttf-droid}}, included in {{Package AUR|ttf-google-webfonts}})<br />
*[[Wikipedia:GNU FreeFont|FreeSans]] ({{Package Official|ttf-freefont}}) - Unicode<br />
*[[Wikipedia:Impact (typeface)|Impact]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Liberation fonts|Liberation Sans]] ({{Package Official|ttf-liberation}}, improved/reworked Cyrillic: {{Package Official|ttf-liberastika}}) - Alternative to Arial (metric-compatible)<br />
*[[Wikipedia:Liberation fonts|Liberation Sans Narrow]] ({{Package Official|ttf-liberation}}) - Alternative to Arial Narrow (metric-compatible)<br />
*[[Wikipedia:Linux Libertine|Linux Biolinum]] ({{Package Official|ttf-linux-libertine}})<br />
*[[Wikipedia:Lucida Sans|Lucida Sans]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Microsoft Sans Serif|Microsoft Sans Serif]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:PT Sans|PT Sans]] ({{Package AUR|ttf-google-webfonts}}) - 3 major variations: normal, narrow, and caption - Unicode: Latin, Cyrillic<br />
*[[Wikipedia:Tahoma (typeface)|Tahoma]] ({{Package AUR|ttf-tahoma}}) <br />
*[[Wikipedia:Trebuchet MS|Trebuchet]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Ubuntu-Title|Ubuntu-Title]] ({{Package AUR|ttf-ubuntu-title}})<br />
*[[Wikipedia:Ubuntu Font Family|Ubuntu Font Family]] ({{Package AUR|ttf-ubuntu-font-family}})<br />
*[[Wikipedia:Verdana|Verdana]] ({{Package AUR|ttf-ms-fonts}})<br />
<br />
===Script===<br />
<br />
*[[Wikipedia:Comic Sans|Comic Sans]] ({{Package AUR|ttf-ms-fonts}})<br />
<br />
===Serif===<br />
*[[Wikipedia:Cambria (typeface)|Cambria]] ({{Package AUR|ttf-vista-fonts}})<br />
*[[Wikipedia:Charis SIL|Charis]] ({{Package AUR|ttf-charis}}, included in {{Package AUR|ttf-sil-fonts}}) - Unicode: Latin, Cyrillic<br />
*[[Wikipedia:DejaVu fonts|DejaVu Serif]] ({{Package Official|ttf-dejavu}}) - Unicode<br />
*[[Wikipedia:Doulos SIL|Doulos]] ({{Package AUR|doulos-sil}}, included in {{Package AUR|ttf-sil-fonts}}) - Unicode: Latin, Cyrillic<br />
*[[Wikipedia:Droid (font)|Droid Serif]] ({{Package AUR|ttf-droid}}, included in {{Package AUR|ttf-google-webfonts}})<br />
*[[Wikipedia:GNU FreeFont|FreeSerif]] ({{Package Official|ttf-freefont}}) - Unicode<br />
*[[Wikipedia:Gentium|Gentium]] ({{Package Official|ttf-gentium}}, included in {{Package AUR|ttf-sil-fonts}}) - Unicode: Latin, Greek, Cyrillic, Phonetic Alphabet<br />
*[[Wikipedia:Georgia (typeface)|Georgia]] ({{Package AUR|ttf-ms-fonts}})<br />
*[[Wikipedia:Liberation fonts|Liberation Serif]] ({{Package Official|ttf-liberation}}) - Alternative to Times New Roman (metric-compatible)<br />
*[[Wikipedia:Linux Libertine|Linux Libertine]] ({{Package Official|ttf-linux-libertine}}) - Unicode: Latin, Greek, Cyrillic, Hebrew<br />
*[[Wikipedia:Times New Roman|Times New Roman]] ({{Package AUR|ttf-ms-fonts}})<br />
*Tinos ({{Package AUR|ttf-google-webfonts}}) - Chrome/Chromium OS replacement for Times New Roman (metric-compatible)<br />
<br />
===Unsorted===<br />
<!--This section should be absorbed into the Monospace/Serif/Sans-Serif structure--><br />
*{{Package AUR|ttf-google-webfonts}} - a huge collection of free fonts (including ubuntu, inconsolata, droid, etc.)<br />
*{{Package Official|ttf-mph-2b-damase}} - Covers full plane 1 and several scripts<br />
*{{Package AUR|ttf-sil-fonts}} - Gentium, Charis, Doulos, Andika and Abyssinica from SIL ''(AUR)''<br />
*{{Package Official|font-bh-ttf}} - Xorg Luxi fonts<br />
*{{Package Official|ttf-cheapskate}} - Font collection from ''dustismo.com''<br />
*{{Package Official|ttf-isabella}} - Calligraphic font based on the ''Isabella Breviary'' of 1497<br />
*{{Package Official|ttf-junicode}} - Junius font containing almost complete medieval latin script glyphs<br />
*arkpandorafonts {{Package AUR|ttf-arkpandora}} — Alternative to Arial and Times New Roman fonts<br />
*{{Package Official|xorg-fonts-type1}} — IBM Courier and Adobe Utopia sets of [[Wikipedia:PostScript fonts|PostScript fonts]]<br />
<br />
==Console fonts==<br />
<br />
The console, meaning a terminal running with no ''X'' Window System, uses the ASCII character set as the default. This font and the keymap used are easily changed.<br />
<br />
A console font is limited to either 256 or 512 characters. The fonts are found in {{Filename|/usr/share/kbd/consolefonts/}}.<br />
<br />
''Keymaps, ''the connection between the key pressed and the character used by the computer, are found in the subdirectories of {{Filename|/usr/share/kbd/keymaps/}}.<br />
<br />
=== Previewing and testing ===<br />
<br />
Unfortunately, no organized library of images is available to preview console fonts. The user can, however, use {{Codeline|setfont}} to temporarily change the font and be able to consider its use as the default. The available ''glyphs ''or letters in the font can also be viewed as a table with the command {{Codeline|showconsolefont}}. <br />
<br />
If the newly changed font is not suitable, a return to the default font is done by issuing the command {{Codeline|setfont}} without any arguments. If the console display is totally unreadable, this command will still work—the user just types in {{Codeline|setfont}} while "working blind."<br />
<br />
Note that {{Codeline|setfont}} only works on the console currently being used. Any other consoles, active or inactive, remain unaffected.<br />
<br />
==== Examples ====<br />
<br />
Change the font. This example is distinctive:<br />
$ setfont /usr/share/kbd/consolefonts/gr737b-9x16-medieval.psfu.gz<br />
<br />
Or change the font to one with 512 glyphs and set the keymap to ''ISO 8859-5'' using the {{Codeline|-m}} option:<br />
$ setfont /usr/share/kbd/consolefonts/LatArCyrHeb-16.psfu.gz -m 8859-5<br />
<br />
Then issue commands that send text to the display, perhaps view a ''manpage'' and try ''vi'' or ''nano'', and view the table of glyphs with the command, {{Codeline|showconsolefont}}.<br />
<br />
Return to the default font with:<br />
$ setfont<br />
<br />
=== Changing the default font ===<br />
<br />
To change the default font, the {{Codeline|CONSOLEFONT<nowiki>=</nowiki>}} and {{Codeline|CONSOLEMAP<nowiki>=</nowiki>}} settings in {{Filename|/etc/rc.conf}} must be altered. Again, the fonts can be found in {{Filename|/usr/share/kbd/consolefonts/}} directory and keymaps can be found in the subdirectories of {{Filename|/usr/share/kbd/keymaps/}}.<br />
<br />
==== Examples ====<br />
For displaying characters such as ''Č, ž, đ, š'' or ''Ł, ę, ą, ś'' using the font {{Filename|lat2-16.psfu.gz}}:<br />
CONSOLEFONT="lat2-16"<br />
It means that second part of ISO/IEC 8859 characters are used with size 16. You can change font size using other values like lat2-08...16. For the regions determined by 8859 specification, look at the [http://en.wikipedia.org/wiki/ISO/IEC_8859#The_Parts_of_ISO.2FIEC_8859 Wikipedia]. You can use a Terminus font which is recommended if you work a lot in console without X server. ter-216b for example is latin-2 part, size 16, bold. ter-216n is the same but normal weight. Terminus fonts have sizes up to 32.<br />
<br />
<br />
Now, set the proper keymap, for lat2-16 it will be:<br />
CONSOLEMAP="8859-2"<br />
<br />
To use the specified font in early userspace, that is, early in the bootup process, add the {{Codeline|consolefont}} hook to {{Filename|/etc/mkinitcpio.conf}}:<br />
HOOKS="base udev autodetect pata scsi sata filesystems '''consolefont''' '''keymap'''"<br />
<br />
Then rebuild the image:<br />
# mkinitcpio -p linux<br />
<br />
{{Note|The above steps must be repeated for each kernel if more than one kernel package is installed.}}<br />
<br />
See: [[Mkinitcpio#HOOKS]]</div>Akela1101