fonts icon indicating copy to clipboard operation
fonts copied to clipboard

No unicodes in uxterm when using Source Code Pro font

Open bfrg opened this issue 10 years ago • 7 comments

When I use the "Source Code Pro for Powerline" font inside a xterm terminal (with unicode support turned on, uxterm), I don't get any unicode characters displayed at all. The powerline symbols (arrows etc.) work fine, but the regular unicode characters are not shown. Instead a small square with a cross inside is shown. This only happens for Source Code Pro. For the other powerline fonts everything seems to work fine. And this is only happening inside xterm/uxterm. When I use Source Code Pro inside xfce4-terminal, everything is fine.

bfrg avatar Apr 21 '15 13:04 bfrg

It looks like Source Code Pro doesn't have all glyphs available. One feature that is missing in xterm is pango which supports glyph substitution. xfce4-terminal on the other hand has this feature, meaning that it will extract the missing glyphs from another installed font. the other powerline fonts seem to have all glyphs.

can anyone check and confirm that?

bfrg avatar Apr 21 '15 14:04 bfrg

I confirm that I'm having the same issues here

elKokito avatar Oct 01 '15 17:10 elKokito

I can confirm the exact same behavior. The font works just fine in gnome-terminal. xterm and uxterm are unable to display some characters.

BlitzKraft avatar Feb 06 '16 16:02 BlitzKraft

Same for me for Hack, arrows and other powerline stuff is displayed correctly but the unicode cross (✘) and check (✓) are displayed as a square.

richarddewit avatar Mar 13 '16 19:03 richarddewit

Is there no workaround for this besides not using xterm? :-)

hholst80 avatar Apr 25 '17 12:04 hholst80

@hholst80 I've switched to Termite

richarddewit avatar Apr 25 '17 16:04 richarddewit

uxterm (I'm assuming that you are using at least that) which support utf-8, seems only support one font, not a set like gnome-terminal or xfce4-terminal and others. If you choose one font, you need choose with care because if you want unicodes, the selected font need to implements all them.

Note: uxterm may produce unexpected results if the current locale is set to one in which the UTF-8 character encoding is not supported, or if fonts using the ISO 10646-1 character set are not available. In the Debian system, the ``xfonts-base'' package provides the fonts that uxterm uses by default. To change the fonts uxterm uses, edit the /usr/share/X11/app-defaults/UXTerm file.

ryukinix avatar Oct 18 '17 01:10 ryukinix