From 034a5c8a09e23ce0a410d0c608dd7e050b83681e Mon Sep 17 00:00:00 2001 From: Ryusei Yamaguchi Date: Tue, 8 Mar 2016 12:26:04 +0900 Subject: Measure the single advance width with a heuristic method This fix is needed to use dual-width fonts, which have double-width glyphs (e.g. CJK unified ideographs). Signed-off-by: Ryusei Yamaguchi Signed-off-by: Christoph Lohmann <20h@r-36.net> --- config.def.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index fd09d72..a1e7d5a 100644 --- a/config.def.h +++ b/config.def.h @@ -417,3 +417,11 @@ static uint selmasks[] = { [SEL_RECTANGULAR] = Mod1Mask, }; +/* + * Printable characters in ASCII, used to estimate the advance width + * of single wide characters. + */ +static char ascii_printable[] = + " !\"#$%&'()*+,-./0123456789:;<=>?" + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" + "`abcdefghijklmnopqrstuvwxyz{|}~"; -- cgit v1.2.1