sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1204B)


      1 font2
      2 =====
      3 
      4 Description
      5 -----------
      6 This patch allows to add spare font besides default. Some glyphs can be
      7 not present in default font. For this glyphs st uses font-config and try
      8 to find them in font cache first. This patch append fonts defined in
      9 `font2` variable to the beginning of font cache. So they will be used
     10 first for glyphs that absent in default font.
     11 
     12 Example
     13 -------------
     14 `static char *font = "Bitstream Vera Sans Mono:pixelsize=11:antialias=true:autohint=true";`
     15 without patch.
     16 
     17 [![Screenshot1](st-font2-wopatch1.png)](st-font2-wopatch1.png)
     18 [![Screenshot2](st-font2-wopatch2.png)](st-font2-wopatch2.png)
     19 
     20 
     21 `static char *font2[] = {
     22 	"Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true"
     23 };`
     24 [![Screenshot3](st-font2-wpatch1.png)](st-font2-wpatch1.png)
     25 [![Screenshot4](st-font2-wpatch2.png)](st-font2-wpatch2.png)
     26 
     27 Download
     28 --------
     29 * [st-font2-20190326-f64c2f8.diff](st-font2-20190326-f64c2f8.diff)
     30 * [st-font2-20190416-ba72400.diff](st-font2-20190416-ba72400.diff)
     31 
     32 Changelog
     33 ---------
     34 * multiple fonts support
     35 * size of spare fonts changes according to size of default font
     36 * fonts loading procedure fixed
     37 
     38 Author
     39 -------
     40 * Kirill Bugaev <kirill.bugaev87@gmail.com>