wiki:Tools/SourceCodePro

Source Code Pro

These are set of free programming fonts from Adobe - https://github.com/adobe-fonts/source-code-pro.

There is another option https://developer.apple.com/fonts/ but these fonts are not monospaced! What an idiocy!

It is absolutely crucial to have a consistent set of nice big fonts on a shitty laptops.

in ~/.fonts.conf or .config/fontconfig/fonts.conf - a local, per-user configuration for the fontconfig library. You may increase DPI setting.

<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<edit name="dpi" mode="assign">
<double>96</double>
</edit>
</match>
<match target="font">
    <edit mode="assign" name="autohint">
        <bool>false</bool>
    </edit>
</match>
<match target="font">
    <edit mode="assign" name="rgba">
        <const>rgb</const>
    </edit>
</match>
<match target="font">
    <edit mode="assign" name="hinting">
        <bool>true</bool>
    </edit>
</match>
<match target="font">
    <edit mode="assign" name="hintstyle">
        <const>hintfull</const>
    </edit>
</match>
<match target="font">
    <edit mode="assign" name="antialias">
        <bool>true</bool>
    </edit>
</match>
<match target="pattern">
   <edit mode="append" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
</match>
<match target="font">
    <test name="weight" compare="more">
        <const>medium</const>
    </test>
    <edit name="autohint" mode="assign">
        <bool>false</bool>
    </edit>
</match>
</fontconfig>

in ~/.Xresources - local, per user configuration for the freetype library.

Xft.antialias: 1
Xft.autohint: 0
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xft.rgba: rgb

then ~/.config/gtk-3.0/settings.ini up GTK font rendering

[Settings]
gtk-application-prefer-dark-theme=0

gtk-key-theme-name=Emacs

gtk-xft-antialias=1
gtk-xft-dpi=96
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb

and GNOME

gsettings set org.gnome.desktop.interface scaling-factor 1

gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
gsettings set org.gnome.desktop.wm.preferences theme 'Ambiance'

gsettings set org.gnome.settings-daemon.plugins.xsettings hinting full
gsettings set org.gnome.settings-daemon.plugins.xsettings antialiasing rgba

gsettings set org.gnome.desktop.interface document-font-name 'Source Code Variable Light 16'
gsettings set org.gnome.desktop.interface monospace-font-name 'Source Code Pro Light 16'

and via ~/.xsettingsd

Xft/Antialias 1
Xft/DPI 96
Xft/Hinting 1
Xft/HintStyle "hintfull"
Xft/RGBA "rgb"

Emacs

(set-face-attribute 'default nil
                    :family "Source Code Pro Light"
                    :slant 'normal
                    :height 165
                    :weight 'light
                    :width 'normal)

and

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(fixed-pitch ((t (:family "Source Code Pro Light" :height 165))))
  '(variable-pitch ((t (:family "Source Code Variable Light" :height 165))))

GVim

in ~/.gvimrc (it will read ~/.vimrc as well

set background=dark
colorscheme NeoSolarized

""set guifont=SF\ Pro\ Text\ Light\ 16
set guifont=Source\ Code\ Pro\ Light\ 16

set guioptions-=m  "menu bar
set guioptions-=T  "toolbar
set guioptions-=r  "scrollbar

Not all the fonts in Gnome Terminal and Emacs are consistent.


See also Solarized

Last modified 2 years ago Last modified on Dec 25, 2018, 1:01:49 PM
Note: See TracWiki for help on using the wiki.