From b71016c25dc18a2c098a87439046873c6c9ddb30 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 3 Sep 2020 17:37:44 +0200 Subject: render: optionally enable heuristics that deal with private usage area chars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Try to detect double-width *glyphs* for single-width *characters*, and allow them to overflow into the next cell. This is only done for single-width chars with a glyph width that is at least 1.5 cells wide, but at most 3 cells. The feature is gated by the new ‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by default. Closes #116 --- doc/foot.ini.5.scd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc') diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 9f8c6cbb..87a81a4e 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -440,6 +440,23 @@ foot. When reporting bugs, please mention if, and to what, you have changed any of these options. +*allow-overflowing-double-width-glyphs* + + When enabled, double width glyphs with a character width of 1 are + allowed to overflow into the neighbouring cell. + + One use case for this is fonts "icon" characters in the Unicode + private usage area, e.g. Nerd Fonts, or Powerline Fonts. Without + this option, such glyphs will appear "cut off". + + Another use case are legacy emoji characters like *WHITE FROWNING + FACE*. + + Note: this feature uses _heuristics_ to determine *which* glyphs + should be allowed to overflow. + + Default: _false_. + *render-timer* Enables a frame rendering timer, that prints the time it takes to render each frame, in microseconds, either on-screen, to stderr, -- cgit v1.3