Created attachment 16592 [details]
Screenshot of the behaviour
When text is bold, japanese kanji characters will be displayed as squares.
Screenshot provided, making the case where the problem happens clear.
xterm version is 235, though the bug has been around for a long time.
It depends on the font - a text-file which creates the screen
would be useful (to help reproduce the problem). For instance,
looking at glyphs in the Unicode range 0x4e00 - 0x9fff (which
one source implies is the corresponding range for Kanji - a
unified Han character set), the fonts that I normally use with
uxterm do not display any usable glyphs. I get better results
For that font, xterm+ncursesw are able to display bold and
non-bold versions of the same glyphs. Unifont
works better - though there are some display issues which do
not match the description in this report.
The reason that knowing the fonts (-fn, -fb, -fw, -fwb) is
important is that if the glyphs are (according to wcwidth)
double-width, xterm will choose a different font than given
by -fn, etc. The likely reason for the bold characters
showing as boxes is that the bold font which is given by the
font server may not have the same glyphs as the normal font.
Still happening with current versions.
If drawing bold text isn't possible but drawing non-bold is, non-bold should be drawn instead of those boxes...
Is this still an issue?
yes - given the same font and glyphs
Yup, still an issue.
improve rendering for the case when a Unicode character is absent in the bold font but present in the normal font by temporarily falling back to the normal font (Debian #359006, Debian #408666).
Not fixed. I've just verified it's still happening on xterm version 288.
thanks. On noting the reopen, I thought perhaps I had not
implemented the change for the -fw/-fwb options, but reading
the code see that I did. It would be helpful to have a copy
of the test-data used for the screenshot (as well as a hint
of the fonts used, in case those are not the default set used
Created attachment 73905 [details]
Script to showcase the problem
This script should make reproducing the problem trivial.
Created attachment 73906 [details]
screenshot of xterm-bug-15979.sh on xterm-288
This showcases the problem with the directory generated by the xterm-bug-15979 script on xterm-288 from Gentoo, with its default configuration, no ~/.Xresources file used.
For the given example, I'm not seeing (using xterm's normal UTF-8 fonts)
anything that points to "bold". The CJK characters show properly with/without
color in the "Large" setting, but as boxes in the other sizes - because
neither the bold/normal glyphs are in those fonts
(I'm reading this report as different from fontsets - something
that I might do in the next iteration of xterm, depends on time
and which fires I'm putting out...).
(In reply to comment #11)
> For the given example, I'm not seeing (using xterm's normal UTF-8 fonts)
> anything that points to "bold". The CJK characters show properly
> color in the "Large" setting, but as boxes in the other sizes - because
> neither the bold/normal glyphs are in those fonts
> (I'm reading this report as different from fontsets - something
> that I might do in the next iteration of xterm, depends on time
> and which fires I'm putting out...).
Perhaps you'll find this useful to reproduce it with ls:
reimu ~ # /usr/bin/dircolors
Still an issue, some 6 years after reporting it.
Actually, I did add logic in xterm to do this.
However, some of the fonts do not provide correct information
to tell which cells are missing. I checked the default font
used by uxterm for example, and can see this is the case for
the example which you gave.
However, I see one case where it might be possible to improve it,
and am testing that change, to see if there are side-effects.