sites

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

commit 57137a13fb8d5eb6f9666d299541ecd0f4eae477
parent 4d98b02f8b47d584723aa52a256b0c61cb3ad60c
Author: Ivan Tham <pickfire@riseup.net>
Date:   Thu,  5 Nov 2015 22:46:48 +0800

Merge xft with fallback fonts into xft

Diffstat:
Ddwm.suckless.org/patches/xft-with-fallback-fonts.md | 36------------------------------------
Mdwm.suckless.org/patches/xft.md | 30+++++++++++++++++++++++++++---
2 files changed, 27 insertions(+), 39 deletions(-)

diff --git a/dwm.suckless.org/patches/xft-with-fallback-fonts.md b/dwm.suckless.org/patches/xft-with-fallback-fonts.md @@ -1,36 +0,0 @@ -Xft With Fallback-Font Support -============================== - -Description ------------ - -Adds Xft and fallback-font support to dwm. This patch was built on top of the -[Xft patch written by Quentin](http://lists.suckless.org/dev/1311/18279.html). -With fallback font support, multiple fonts can now be specified in config.h -which are used to render characters not present in the first font. If none of -the user-specified fonts contains a given character, this patch attempts to -automatically fallback to whatever suitable font it can find on the host -system. - -With this patch, the "font" variable in config.h is superseded by the "fonts" -variable which is a priority-ordered list of fonts that should be used to -render text. Here's an example "fonts" definition: - - static const char *fonts[] = { - "Sans:size=10.5", - "VL Gothic:size=10.5", - "WenQuanYi Micro Hei:size=10.5", - }; - -At least one font must be specified, and a maximum of `DRW_FONT_CACHE_SIZE` -fonts can be used. - -Download --------- - -* [dwm-6.1-xft-with-fallback-font.diff](dwm-6.1-xft-with-fallback-font.diff) (20k) (2015-02-28) - -Author ------- - -* [Eric Pruitt](https://github.com/ericpruitt/) diff --git a/dwm.suckless.org/patches/xft.md b/dwm.suckless.org/patches/xft.md @@ -4,17 +4,41 @@ xft Description ----------- -This patch implements Xft. This allows users to utilize the UTF8 character set. This is enabled by default when you are using the latest dwm-git. +The `xft` patch patch implements Xft. This allows users to utilize the UTF8 +character set. Look at the patch below which is more advance. + +The `xft-with-fallback-font` patch adds Xft and fallback-font support to dwm. +This patch was built on top of the [Xft patch written by +Quentin](http://lists.suckless.org/dev/1311/18279.html). With fallback font +support, multiple fonts can now be specified in config.h which are used to +render characters not present in the first font. If none of the user-specified +fonts contains a given character, this patch attempts to automatically fallback +to whatever suitable font it can find on the host system. +**NOTE: This is enabled by default when you are using the latest dwm-git.** + +With this patch, the "font" variable in config.h is superseded by the "fonts" +variable which is a priority-ordered list of fonts that should be used to +render text. Here's an example "fonts" definition: + + static const char *fonts[] = { + "Sans:size=10.5", + "VL Gothic:size=10.5", + "WenQuanYi Micro Hei:size=10.5", + }; + +At least one font must be specified, and a maximum of `DRW_FONT_CACHE_SIZE` +fonts can be used. + Download -------- - * [dwm-6.0-xft.diff](dwm-6.0-xft.diff) (6.6k) (16 May 2012) * memory leak fixed and improved implementation. * include config.def.h and config.mk changes. +* [dwm-6.1-xft-with-fallback-font.diff](dwm-6.1-xft-with-fallback-font.diff) (20k) (2015-02-28) Author ------ - * Lee Fallat (lf94)<ircsurfer33@gmail.com> +* [Eric Pruitt](https://github.com/ericpruitt/)