Skip to content

Instantly share code, notes, and snippets.

@aeghn
Forked from j1cs/improve_fonts.md
Created November 22, 2020 10:53

Revisions

  1. @j1cs j1cs revised this gist Nov 19, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -67,6 +67,8 @@ Set your font settings to match above in your DE system settings.

    If you want to use infinality you should try [https://github.com/pdeljanov/infinality-remix](https://github.com/pdeljanov/infinality-remix)
    **TL;DR**
    ```yay -S freetype2-infinality-remix fontconfig-infinality-remix cairo-infinality-remix```

    Enable font presets by creating symbolic links:
    ```sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d```
    ```sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d```
  2. @j1cs j1cs revised this gist Nov 19, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -73,7 +73,7 @@ Enable font presets by creating symbolic links:
    ```sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d```

    To be sure, inside /etc/fonts/local.conf add with following
    change Favourite for your selected font (i.e Source Sans Pro, Droid Sans, Droid Serif, etc):
    change *Favourite* for your selected font (i.e Source Sans Pro, Droid Sans, Droid Serif, etc):
    ```
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. @j1cs j1cs revised this gist Nov 19, 2020. 1 changed file with 81 additions and 1 deletion.
    82 changes: 81 additions & 1 deletion improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -65,8 +65,88 @@ Set your font settings to match above in your DE system settings.

    ## Infinality Remix

    If you want to use you should try [https://github.com/pdeljanov/infinality-remix](https://github.com/pdeljanov/infinality-remix)
    If you want to use infinality you should try [https://github.com/pdeljanov/infinality-remix](https://github.com/pdeljanov/infinality-remix)
    **TL;DR**
    Enable font presets by creating symbolic links:
    ```sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d```
    ```sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d```
    ```sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d```

    To be sure, inside /etc/fonts/local.conf add with following
    change Favourite for your selected font (i.e Source Sans Pro, Droid Sans, Droid Serif, etc):
    ```
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match target="font">
    <edit mode="assign" name="hinting">
    <bool>true</bool>
    </edit>
    <edit mode="assign" name="autohint">
    <bool>false</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
    <const>hintslight</const>
    </edit>
    <edit mode="assign" name="rgba">
    <const>rgb</const>
    </edit>
    <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
    </edit>
    <edit mode="assign" name="antialias">
    <bool>true</bool>
    </edit>
    </match>
    <match>
    <edit mode="prepend" name="family">
    <string>Favourite Sans</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>serif</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Favourite Serif</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>sans-serif</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Favourite Sans</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>monospace</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Favourite Mono</string>
    </edit>
    </match>
    </fontconfig>
    ```
    The following fonts are recommended and should be installed for a good experience:

    * Caladea (`ttf-caladea`)
    * Carlito (`ttf-carlito`)
    * DejaVu (`ttf-dejavu`)
    * Impallari Cantora (`aur/ttf-impallari-cantora`)
    * Liberation (`ttf-liberation`)
    * Noto (`noto-fonts`)
    * Open Sans (`ttf-opensans`)
    * Overpass (`otf-overpass`)
    * Roboto (`ttf-roboto`)
    * TeX Gyre (`tex-gyre-fonts`)
    * Ubuntu (`ttf-ubuntu-font-family`)
    * Courier Prime (`aur/ttf-courier-prime`)
    * Gelasio (`aur/ttf-gelasio-ib`)
    * Merriweather (`aur/ttf-merriweather`)
    * Source Sans Pro (`aur/ttf-source-sans-pro-ibx`)
    * Signika (`aur/ttf-signika`)

    ## Older and deprecated

  4. @j1cs j1cs revised this gist Nov 19, 2020. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -63,7 +63,12 @@ Create /etc/fonts/local.conf with following:
    ```
    Set your font settings to match above in your DE system settings.

    ## Older
    ## Infinality Remix

    If you want to use you should try [https://github.com/pdeljanov/infinality-remix](https://github.com/pdeljanov/infinality-remix)


    ## Older and deprecated

    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

  5. @j1cs j1cs revised this gist Nov 19, 2020. 1 changed file with 54 additions and 37 deletions.
    91 changes: 54 additions & 37 deletions improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -5,65 +5,82 @@ This is what I do when I install Arch Linux to improve the fonts.

    You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

    Install some fonts, for example:
    Install some fonts, for example:
    ```sudo pacman -S ttf-dejavu ttf-liberation noto-fonts```

    sudo pacman -S ttf-dejavu ttf-liberation noto-fonts
    Enable font presets by creating symbolic links:
    Enable font presets by creating symbolic links:
    ```sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d```
    ```sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d```
    ```sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d```

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
    sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
    sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
    The above will disable embedded bitmap for all fonts, enable sub-pixel RGB rendering, and enable the LCD filter which is designed to reduce colour fringing when subpixel rendering is used.

    Enable FreeType subpixel hinting mode by editing:

    /etc/profile.d/freetype2.sh
    ```/etc/profile.d/freetype2.sh```

    Uncomment the desired mode at the end:

    export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
    ``` export FREETYPE_PROPERTIES="truetype:interpreter-version=40"```

    For font consistency, all applications should be set to use the serif, sans-serif, and monospace aliases, which are mapped to particular fonts by fontconfig.

    Create /etc/fonts/local.conf with following:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match>
    <edit mode="prepend" name="family"><string>Noto Sans</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Serif</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>sans-serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>monospace</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Mono</string></edit>
    </match>
    </fontconfig>
    ```
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match>
    <edit mode="prepend" name="family">
    <string>Noto Sans</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>serif</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Noto Serif</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>sans-serif</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Noto Sans</string>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family">
    <string>monospace</string>
    </test>
    <edit name="family" mode="assign" binding="same">
    <string>Noto Mono</string>
    </edit>
    </match>
    </fontconfig>
    ```
    Set your font settings to match above in your DE system settings.

    ## Older

    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation
    ```sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation```

    yaourt -S ttf-ms-fonts ttf-vista-fonts ttf-monaco ttf-qurancomplex-fonts
    ```yay -S ttf-ms-fonts ttf-vista-fonts ttf-monaco ttf-qurancomplex-fonts```

    Next we will disable bitmat fonts, which are used as a fallback.

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
    ```sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d```

    Now we need to add the Infinality repo to our pacman.conf file. To do this, open the file with gedit (or whatever text editor your using):

    sudo gedit /etc/pacman.conf
    ```sudo vim /etc/pacman.conf```

    Add the following to your pacman.conf to use the infinality repo:

    ```
    [infinality-bundle]
    SigLevel = Never
    Server = http://bohoomil.com/repo/$arch
    @@ -75,14 +92,14 @@ Server = http://bohoomil.com/repo/multilib/$arch
    [infinality-bundle-fonts]
    SigLevel = Never
    Server = http://bohoomil.com/repo/fonts

    ```
    Then uncomment the multilib on pacman configuration to download and install 32 bit package on 64 bit systems

    ```
    [multilib]
    Include = /etc/pacman.d/mirrorlist

    ```
    Install the bundle:

    sudo pacman -Syy infinality-bundle infinality-bundle-multilib # all question answer yes
    ```sudo pacman -Syy infinality-bundle infinality-bundle-multilib # all question answer yes```

    Finally, reboot your system.
  6. @j1cs j1cs renamed this gist Nov 19, 2020. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions improve_fonts.txt → improve_fonts.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    ### Update
    # Improve Fonts
    ## Newest
    Make your Arch fonts beautiful easily!
    This is what I do when I install Arch Linux to improve the fonts.

    @@ -40,12 +41,12 @@ Create /etc/fonts/local.conf with following:
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>monospace</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Sans Mono</string></edit>
    <edit name="family" mode="assign" binding="same"><string>Noto Mono</string></edit>
    </match>
    </fontconfig>
    Set your font settings to match above in your DE system settings.

    ### Older
    ## Older

    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

  7. @j1cs j1cs revised this gist Sep 1, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ Create /etc/fonts/local.conf with following:
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>monospace</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Mono</string></edit>
    <edit name="family" mode="assign" binding="same"><string>Noto Sans Mono</string></edit>
    </match>
    </fontconfig>
    Set your font settings to match above in your DE system settings.
  8. Juan Cuzmar revised this gist Jun 26, 2018. 1 changed file with 49 additions and 0 deletions.
    49 changes: 49 additions & 0 deletions improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,52 @@
    ### Update
    Make your Arch fonts beautiful easily!
    This is what I do when I install Arch Linux to improve the fonts.

    You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

    Install some fonts, for example:

    sudo pacman -S ttf-dejavu ttf-liberation noto-fonts
    Enable font presets by creating symbolic links:

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
    sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
    sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
    The above will disable embedded bitmap for all fonts, enable sub-pixel RGB rendering, and enable the LCD filter which is designed to reduce colour fringing when subpixel rendering is used.

    Enable FreeType subpixel hinting mode by editing:

    /etc/profile.d/freetype2.sh
    Uncomment the desired mode at the end:

    export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
    For font consistency, all applications should be set to use the serif, sans-serif, and monospace aliases, which are mapped to particular fonts by fontconfig.

    Create /etc/fonts/local.conf with following:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match>
    <edit mode="prepend" name="family"><string>Noto Sans</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Serif</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>sans-serif</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>monospace</string></test>
    <edit name="family" mode="assign" binding="same"><string>Noto Mono</string></edit>
    </match>
    </fontconfig>
    Set your font settings to match above in your DE system settings.

    ### Older

    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation
  9. Juan Cuzmar revised this gist Jun 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ To improve the fonts in Arch we first need to add some additional fonts. Add the

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation

    yaourt -S ttf-ms-fonts ttf-vista-fonts monaco-linux-font ttf-qurancomplex-fonts
    yaourt -S ttf-ms-fonts ttf-vista-fonts ttf-monaco ttf-qurancomplex-fonts

    Next we will disable bitmat fonts, which are used as a fallback.

  10. Juan Cuzmar revised this gist Dec 10, 2015. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,38 @@
    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation

    yaourt -S ttf-ms-fonts ttf-vista-fonts monaco-linux-font ttf-qurancomplex-fonts

    Next we will disable bitmat fonts, which are used as a fallback.

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d

    Now we need to add the Infinality repo to our pacman.conf file. To do this, open the file with gedit (or whatever text editor your using):

    sudo gedit /etc/pacman.conf

    Add the following to your pacman.conf to use the infinality repo:

    [infinality-bundle]
    SigLevel = Never
    Server = http://bohoomil.com/repo/$arch

    [infinality-bundle-multilib]
    SigLevel = Never
    Server = http://bohoomil.com/repo/multilib/$arch

    [infinality-bundle-fonts]
    SigLevel = Never
    Server = http://bohoomil.com/repo/fonts

    Then uncomment the multilib on pacman configuration to download and install 32 bit package on 64 bit systems

    [multilib]
    Include = /etc/pacman.d/mirrorlist

    Install the bundle:

    sudo pacman -Syy infinality-bundle infinality-bundle-multilib # all question answer yes

    Finally, reboot your system.
  11. Juan Cuzmar revised this gist Dec 10, 2015. 1 changed file with 1 addition and 15 deletions.
    16 changes: 1 addition & 15 deletions improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -1,37 +1,23 @@
    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation

    yaourt -S ttf-ms-fonts ttf-vista-fonts monaco-linux-font ttf-qurancomplex-fonts

    Next we will disable bitmat fonts, which are used as a fallback.

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d

    Now we need to add the Infinality repo to our pacman.conf file. To do this, open the file with gedit (or whatever text editor your using):

    sudo gedit /etc/pacman.conf

    Add the following to your pacman.conf to use the infinality repo:

    [infinality-bundle]
    SigLevel = Never
    Server = http://bohoomil.com/repo/$arch

    [infinality-bundle-multilib]
    SigLevel = Never
    Server = http://bohoomil.com/repo/multilib/$arch

    [infinality-bundle-fonts]
    SigLevel = Never
    Server = http://bohoomil.com/repo/fonts

    Then uncomment the multilib on pacman configuration to download and install 32 bit package on 64 bit systems
    [multilib]
    Include = /etc/pacman.d/mirrorlist

    Install the bundle:

    sudo pacman -Syy infinality-bundle infinality-bundle-multilib # all question answer yes

    Finally, reboot your system.
    Finally, reboot your system.
  12. Juan Cuzmar revised this gist Dec 10, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,6 @@ Include = /etc/pacman.d/mirrorlist

    Install the bundle:

    sudo pacman -Syy infinality-bundle infinality-bundle-multilib
    sudo pacman -Syy infinality-bundle infinality-bundle-multilib # all question answer yes

    Finally, reboot your system.
  13. Juan Cuzmar created this gist Dec 10, 2015.
    37 changes: 37 additions & 0 deletions improve_fonts.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    To improve the fonts in Arch we first need to add some additional fonts. Add the following to the terminal:

    sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation

    yaourt -S ttf-ms-fonts ttf-vista-fonts monaco-linux-font ttf-qurancomplex-fonts

    Next we will disable bitmat fonts, which are used as a fallback.

    sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d

    Now we need to add the Infinality repo to our pacman.conf file. To do this, open the file with gedit (or whatever text editor your using):

    sudo gedit /etc/pacman.conf

    Add the following to your pacman.conf to use the infinality repo:

    [infinality-bundle]
    SigLevel = Never
    Server = http://bohoomil.com/repo/$arch

    [infinality-bundle-multilib]
    SigLevel = Never
    Server = http://bohoomil.com/repo/multilib/$arch

    [infinality-bundle-fonts]
    SigLevel = Never
    Server = http://bohoomil.com/repo/fonts

    Then uncomment the multilib on pacman configuration to download and install 32 bit package on 64 bit systems
    [multilib]
    Include = /etc/pacman.d/mirrorlist

    Install the bundle:

    sudo pacman -Syy infinality-bundle infinality-bundle-multilib

    Finally, reboot your system.