Merge pull request #410 from ariasuni/add-fontconfig-configuration

add fontconfig configuration and add it to installation instructions
This commit is contained in:
Chris Simpkins 2018-03-01 07:27:30 -05:00 committed by GitHub
commit 6f1a8fb5a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

View File

@ -54,7 +54,8 @@ Frequently asked questions are answered in our [FAQ](FAQ.md).
1. Download the [latest version of Hack][ttf_latest].
2. Extract the files from the archive (`.zip`).
3. Copy the font files to either your system font folder (often `/usr/share/fonts/`) or user font folder (often `~/.local/share/fonts/` or `/usr/local/share/fonts`).
4. Clear and regenerate your font cache and indexes with the following set of commands:
4. Copy the font configuration file in `config/fontconfig/` to either the system font configuration folder (often `/etc/fonts/conf.d/`) or the font user folder (often `~/.config/fontconfig/conf.d`)
5. Clear and regenerate your font cache and indexes with the following command:
```
$ fc-cache -f -v
@ -223,4 +224,3 @@ See [LICENSE.md](https://github.com/source-foundry/Hack/blob/master/LICENSE.md)
<!-- Link to the latest release archive for README.md file -->
[ttf_latest]: https://github.com/source-foundry/Hack/releases/download/v3.002/Hack-v3.002-ttf.zip

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Declare Hack a monospace font -->
<alias>
<family>Hack</family>
<default><family>monospace</family></default>
</alias>
<!-- if this file is put in users configuration, unset sans-serif family -->
<match>
<test compare="eq" name="family">
<string>Hack</string>
</test>
<test compare="eq" name="family">
<string>sans-serif</string>
</test>
<edit mode="delete" name="family"/>
</match>
</fontconfig>

View File

@ -94,6 +94,7 @@
- Guilherme Amadio - Linux
- Helio Chissini de Castro - Linux
- Mélanie Chauvel (ariasuni) - Linux
- Samina Fu - cdnjs
- Michael "Tex" Hex - Windows
- Paride Legovini - Linux