mirror of
https://github.com/source-foundry/Hack.git
synced 2024-09-11 05:05:37 +03:00
Merge pull request #410 from ariasuni/add-fontconfig-configuration
add fontconfig configuration and add it to installation instructions
This commit is contained in:
commit
6f1a8fb5a4
@ -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
|
||||
|
||||
|
19
config/fontconfig/45-Hack.conf
Normal file
19
config/fontconfig/45-Hack.conf
Normal 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 user’s 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user