index.md (1563B)
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 [](st-font2-wopatch1.png) 18 [](st-font2-wopatch2.png) 19 20 21 `static char *font2[] = { 22 "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true" 23 };` 24 [](st-font2-wpatch1.png) 25 [](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 * [st-font2-0.8.5.diff](st-font2-0.8.5.diff) 32 33 The patches above do not support using bitmap spare fonts. If you want to use bitmap fonts for spare fonts, use the following patch instead which solves the issue: 34 * [st-font2-bitmap-0.9.3.diff](st-font2-bitmap-0.9.3.diff) 35 36 Changelog 37 --------- 38 * multiple fonts support 39 * size of spare fonts changes according to size of default font 40 * fonts loading procedure fixed 41 * added support for bitmap fonts 42 43 Author 44 ------- 45 * Kirill Bugaev <kirill.bugaev87@gmail.com> 46 * Rizqi Nur Assyaufi <bandithijo@gmail.com> (0.8.5 port)