Fonts

Fonts on Alpine Linux covers a wide range of various languages. If you can't see your language, you need to install the font that has glyphs (little picture) created for it. The square box called a substitute character or "tofu" that acts as a placeholder for missing a glyph usually with a two byte sequence. Tofu is a prepared food that is a traditional part of East Asian and Southeast Asian meals. It is often served in a white rectangular appearance.
== Installation ==
 
Default internal fb fonts (tty console) or xorg fonts (desktops) are suitable for a default installation. is installed with Xorg, so fonts for most languages (Japanese, Korean, Latin, Cyrillic) are already covered. Exceptions are Arabic, Persian, Thai, Tamil, etc. according to the Wikipedia Page on languages for article translation. 
These selections will cover most languages and are a good fit for most setups: 
These selections add special support for cyrillic languages like Russian and Serbian, etc.:
These selections cover special Asiatic languages like Japanese, etc.:
The following will add some partially supported Chinese fonts:
These selection will cover, in general Arabic, Thai, Ethiopic, Hebrew, Romanian, Persian, Korean Hangul, Greek, Persian, Russian/Slavic Cyrillic, Macedonian/Serbian, Armenian, Georgian, Lao, Devanagari, Urdu (Hindustani as in Northern India and Pakistan), Cherokee, Thaana languages support for desktop setups:
== Configuration ==
fc-cache -fv can be used to display the font locations and to update the cache.
Some applications do not specify a specific font to use but rather say sans-serif [sans means without as in without tiny lines], serif, monospace [as in proportional square font]. This is where Fontconfig comes into place by substituting the general font type with a specific font that you like. For package developers, contains a fontconfig configuration file. This will be symlinked into . See for details about the meaning behind the priority numbers.
For regular users, you want to create/edit your personal . This is in XML and describes which preferred font to use for these general types. See this for details.
Per-user Configuration is made in but it's hard to configure. An easier method is to use the
 file.
The following will set up for all users, a minimal resource usage for fonts. No antialiasing. No hint, etc:
== List of fonts in Alpine Linux ==
* Utopia - 
* Noto - -- These fonts can cover different glyphs for your language. If you go to https://fonts.google.com/noto , you can try to search for your language to see if it is supported. If Alpine doesn't have it, you can download it from Google into your . As hinted in the introduction, noto comes from no tofu or gradual elimination of these substitute characters off the web.
* Terminus - -- Monospace font
* BaKoMa -- Fonts for TeX typesetting system (for academics in the math and sciences and book writers) and TeX (WYSIWYG) editors
* Bitstream Vera 
* Bera (Bitstream Vera Type 1) - -- Use for LaTeX
* Font Awesome - -- It was used in Twitter Bootstrap. It is a font representing things and brands as Icons.
* GNU FreeFont - -- See link for support for different writing systems/languages
* GNU Unifont - -- It contains glyphs of every codepoint
* -- Cyrillic fonts (Russian/Slavic Style)
* -- X.org public domain Cyrillic fonts for screen use
* -- Ethiopic fonts used in Ethiopia and Eritrea
* -- Bitmap fonts in PCF format (shows glyphs of many types and installed by default by xorg-server package)
* ClearlyU fonts - -- Thai, Ethiopic, Hebrew, Romanian, Persian, Korean Hangul, Greek, Persian, Russian/Slavic Cyrillic, Macedonian/Serbian, Armenian, Georgian, Lao, Devanagari, Urdu (Hindustani as in Northern India and Pakistan), Cherokee, Thaana. See link to changelog for full list of languages supported.
* Overpass - 
* Luxi fonts - -- designed by Kris Holmes and Charles Bigelow which bh is refers to the last name
* IPA Font - -- A Japanese font
* Chrome OS core fonts - 
* Vollkorn - - A serif font with glyphs for Cyrillic (Russian/Slavic), Greek, Polish, Dutch, Bulgarian, Serbian, and small capitals
* Open Sans - 
* Cantarell - -- Designed for reading and the default GNOME font
* DejaVu - -- A modified Bitstream Vera with more styles and unicode coverage
* Linux Libertine - -- A free alternative to Times New Roman
* Liberation -- A free alternative to Helvetica and Arial
* Inconsolata - -- A monospace font designed for terminals and reading source code
* mononoki - -- A font for programming and code review
* Droid - / -- Designed for small screens and was used in older Android
* -- Fixed width fonts by Dale Schumacher
* -- Japanese Kana fonts by Sony Electronics
* -- A standard cursor font
* -- Cursor and glyph fonts by Sun Microsystems
* -- A Cyrillic (Russian) font by Serge Winitzki designed for proofreading mixed Russian-English text
* -- Chinese Song Ti style fonts (thinner horizontal lines compared to vertical)
* -- A Japanese International Standard font
* IBM Courier 
* -- A Digital Equipment Corporation cursor and session fonts
* -- A Russian font for X11 by Cronyx
* -- A bitmap and proportional Arabic font in newspaper style 
==Non-free fonts==
* Core fonts for the Web () - For installing non-free proprietary Microsoft fonts like Comic Sans. Not recommended for commercial or open source projects. See their licensing.
 Arial
 Arial Black
 Andalé Mono
 Courier New
 Comic Sans MS
 Georgia
 Impact
 Times New Roman
 Trebuchet MS
 Verdana
 Webdings
== Changing the console font ==
The default font may be too small on high-resolution monitors, e.g. 4K ones. To change the default font, e.g. to the 32px ISO Latin-1 Terminus font:
# 
# try out fonts in a virtual console using # setfont /usr/share/consolefonts/ter-132n.psf.gz
# edit , set it to the font you choose, e.g. consolefont="ter-132n.psf.gz"
# enable this using # rc-update add consolefont boot
== Changing GRUB font and font size ==
The font in the GRUB boot screen might also be too small on high-resolution monitors. In order to change the default font and font size, you first need install grub-mkfont:
Then you can choose one of the fonts in , e.g. . Then you can create a grub font with the desired size:
Here we are using size 32 but you can adjust it. 
After creating the font you need to edit and add the configuration with the path for your selected font, e.g. :
GRUB_FONT=/boot/grub/fonts/inconsolata-32.pf2
Finally you can run 
 
and then you can reboot your system.
== See Also ==
* Emojis
* Fonts - Archwiki
Category:Infographics