@ -45,7 +45,7 @@ A configuration typically looks like the following lines.
This configuration requires some fonts that are not necessarily present in any
This configuration requires some fonts that are not necessarily present in any
Linux installation so they may have to be installed.
Linux installation so they may have to be installed.
Follow the section on [adding new fonts ](#adding-new-font ) and
Follow the section on [adding new fonts ](#adding-new-font -to-configuration ) and
[recommended fonts ](#recommended-fonts ) as needed.
[recommended fonts ](#recommended-fonts ) as needed.
## Usage
## Usage
@ -53,6 +53,24 @@ Follow the section on [adding new fonts](#adding-new-font) and
This section addresses important commands and packages for the configuration of
This section addresses important commands and packages for the configuration of
fonts.
fonts.
### Add TTF Font
A font can be added to the local users fonts using a `.ttf` file.
The file has to be copied into the local fonts directory `~/.local/share/fonts` .
Afterwards the [cache should be reloaded ](#reload-the-cache ).
Finally the font can be [found ](#list-or-find-font-family ).
### Reload the Cache
The cache needs to be reloaded in certain situations like after a new font
has been added.
This can be achieved by the following command.
```sh
fc-cache -f -c
```
### List or Find Font Family
### List or Find Font Family
A list of all fonts can be displayed using the command `fc-match -a` .
A list of all fonts can be displayed using the command `fc-match -a` .
@ -63,17 +81,18 @@ For matching the command `fc-match -s <search term>` is be used.
This will display a list of font families that match best with the given search
This will display a list of font families that match best with the given search
term.
term.
### Adding New Font
### Adding New Font to Configuration
A new font can be added by placing its name inside `<family>` /`</ family > `-tags.
A new font can be added by placing its name inside `<family>` /`</ family > `-tags.
Make sure to place it inside the correct [font family ](/wiki/font.md#typefaces ).
Make sure to place it inside the correct [font family ](/wiki/font.md#typefaces ).
If you want to add a font into the configuration make sure its name
If you want to add a font into the configuration make sure its name
[matches ](#list-or-find-font-family ) correctly.
[matches ](#list-or-find-font-family ) correctly.
### Recommended Fonts
### Recommended Fonts
In this section various fonts are listed for the different typefaces.
In this section various fonts are listed for the different typefaces.
Make sure to follow [the adding new fonts section ](#adding-new-font ) after
Make sure to follow [the adding new fonts section ](#adding-new-font -to-configuration ) after
installing new fonts.
installing new fonts.
#### Monospace
#### Monospace
@ -119,3 +138,14 @@ displayed properly.
[JoyPixels ](https://joypixels.com ) feature many emoji icons.
[JoyPixels ](https://joypixels.com ) feature many emoji icons.
The fonts can be obtained from their [website ](https://joypixels.com/download )
The fonts can be obtained from their [website ](https://joypixels.com/download )
or for most distributions from the `ttf-joypixels` package.
or for most distributions from the `ttf-joypixels` package.
#### Special Fonts
This section lists some fonts that are good in certain situations but are not
intended to be used as day-to-day font.
- [MagicMedieval & MagicSymbols ](http://www.thealmightyguru.com/GameFonts/Series-MagicTheGathering.html )
are fonts that are similar to the font used in the game
[Magic: The Gathering ](/wiki/games/magic%3A_the_gathering.md ).
An overview of the glyphs can be found in a
[StackExchange post by Cicada ](https://tex.stackexchange.com/questions/570890/how-can-i-typeset-magic-the-gathering-symbols-using-the-pifont-package-in-latex ).