index.md (1490B)
1 xft 2 === 3 4 Description 5 ----------- 6 The `xft` patch patch implements Xft. This allows users to utilize the UTF8 7 character set. Look at the patch below which is more advance. 8 9 The `xft-with-fallback-font` patch adds Xft and fallback-font support to dwm. 10 This patch was built on top of the 11 [Xft patch written by Quentin](//lists.suckless.org/dev/1311/18279.html). With 12 fallback font support, multiple fonts can now be specified in config.h which 13 are used to render characters not present in the first font. If none of the 14 user-specified fonts contains a given character, this patch attempts to 15 automatically fallback to whatever suitable font it can find on the host 16 system. **NOTE: This is enabled by default when you are using the latest 17 dwm-git.** 18 19 With this patch, the "font" variable in config.h is superseded by the "fonts" 20 variable which is a priority-ordered list of fonts that should be used to 21 render text. Here's an example "fonts" definition: 22 23 static const char *fonts[] = { 24 "Sans:size=10.5", 25 "VL Gothic:size=10.5", 26 "WenQuanYi Micro Hei:size=10.5", 27 }; 28 29 At least one font must be specified, and a maximum of `DRW_FONT_CACHE_SIZE` 30 fonts can be used. 31 32 33 Download 34 -------- 35 * [dwm-6.0-xft.diff](dwm-6.0-xft.diff) (6.6k) (16 May 2012) 36 * memory leak fixed and improved implementation. 37 * include config.def.h and config.mk changes. 38 * [dwm-6.1-xft-with-fallback-font.diff](dwm-6.1-xft-with-fallback-font.diff) (20k) 39 40 Authors 41 ------- 42 * [Eric Pruitt](https://github.com/ericpruitt/)