config: add tweak.grapheme-width-method=max

‘max’ is a new value for ‘tweak.grapheme-width-method’. When enabled,
the width of a grapheme cluster is that of the cluster’s widest
codepoint.
This commit is contained in:
Daniel Eklöf 2021-11-22 23:02:25 +01:00
parent caec64cbda
commit c1c0f11821
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 18 additions and 3 deletions

View file

@ -256,7 +256,11 @@ struct config {
enum fcft_scaling_filter fcft_filter;
bool overflowing_glyphs;
bool grapheme_shaping;
enum {GRAPHEME_WIDTH_WCSWIDTH, GRAPHEME_WIDTH_DOUBLE} grapheme_width_method;
enum {
GRAPHEME_WIDTH_WCSWIDTH,
GRAPHEME_WIDTH_DOUBLE,
GRAPHEME_WIDTH_MAX,
} grapheme_width_method;
bool render_timer_osd;
bool render_timer_log;
bool damage_whole_window;