[PATCH] Skip ZERO_WIDTH_CHAR to avoid rendering artifacts with background colors
ambrus
ambrus at math.bme.hu
Tue Jun 30 16:00:59 CEST 2026
On 2026-06-30 12:52, Ross Schlaikjer wrote:
> It seems like the rxvt_font_default::draw() method handles zero-width
> characters by just skipping them, so I applied this to the _xft and
> _x11 versions as well, which appears to have fixed the issue (my font
> is xft:Unifont:pixelsize=24).
The function rxvt_font_xft::draw() in src/rxvtfont.C has a comment
saying
> xft/freetype represent combining characters as characters with zero
> width rendered over the previous character with some fonts, while in
> other fonts […]
Are you sure that your patch won't break combining characters that are
represented in this first way?
More information about the rxvt-unicode
mailing list