diff options
| author | Ryusei Yamaguchi <mandel59@gmail.com> | 2016-03-08 12:26:04 +0900 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2016-03-08 13:46:42 +0100 |
| commit | 034a5c8a09e23ce0a410d0c608dd7e050b83681e (patch) | |
| tree | 6e5baa21a777ccac547125653c4389ecc18b6e6c /config.def.h | |
| parent | xtermclear() is now done by xdrawglyphfontspecs() (diff) | |
| download | st-034a5c8a09e23ce0a410d0c608dd7e050b83681e.tar.gz st-034a5c8a09e23ce0a410d0c608dd7e050b83681e.zip | |
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 <mandel59@gmail.com>
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 8 |
1 files changed, 8 insertions, 0 deletions
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[] = { | |||
| 417 | [SEL_RECTANGULAR] = Mod1Mask, | 417 | [SEL_RECTANGULAR] = Mod1Mask, |
| 418 | }; | 418 | }; |
| 419 | 419 | ||
| 420 | /* | ||
| 421 | * Printable characters in ASCII, used to estimate the advance width | ||
| 422 | * of single wide characters. | ||
| 423 | */ | ||
| 424 | static char ascii_printable[] = | ||
| 425 | " !\"#$%&'()*+,-./0123456789:;<=>?" | ||
| 426 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" | ||
| 427 | "`abcdefghijklmnopqrstuvwxyz{|}~"; | ||
