index.md - sites - public wiki contents of suckless.org | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
index.md (1306B) | |
--- | |
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=tr… | |
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=… | |
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 Changelog | |
34 --------- | |
35 * multiple fonts support | |
36 * size of spare fonts changes according to size of default font | |
37 * fonts loading procedure fixed | |
38 | |
39 Author | |
40 ------- | |
41 * Kirill Bugaev <[email protected]> | |
42 * Rizqi Nur Assyaufi <[email protected]> (0.8.5 port) |