mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
config: add grapheme-width-method=default
This is the new default mode, and tries to do "the right thing". That is, recognize and handle: * Variation Selector 16 (graphical presentation) * ZWJ sequences * Skin tones and hair-styles * Country flags Things known to be incorrect: * "Invalid" country letter combinations are still treated as flags. That is, the combined width is 2, even though it should be 4.
This commit is contained in:
parent
3b9aca6a3d
commit
ab39ed99df
4 changed files with 80 additions and 11 deletions
1
config.h
1
config.h
|
|
@ -326,6 +326,7 @@ struct config {
|
|||
bool overflowing_glyphs;
|
||||
bool grapheme_shaping;
|
||||
enum {
|
||||
GRAPHEME_WIDTH_DEFAULT,
|
||||
GRAPHEME_WIDTH_WCSWIDTH,
|
||||
GRAPHEME_WIDTH_DOUBLE,
|
||||
GRAPHEME_WIDTH_MAX,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue