I think this shouldn't have any effect there - this patch is checking and
skipping the specific u200b codepoint, whereas the combining character
comment is about other codepoints that have glyphs with no advance value.

By way of test, I copied some text that makes heavy use of combining
characters from http://demo.danielmclaren.com/2015/diacriticism/ into the
patched terminal. My font doesn't have all of the diacritics, so some of
them are placeholder boxes, but the advance looks correct for all of them.

Screenshot: https://www.xvjpf.org/rxvt_combining.png

- Ross

On Tue, Jun 30, 2026 at 11:01 PM ambrus <[email protected]> wrote:

> 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?
>
>
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to