I need to be able to deal with Arabic file names and directories from terminal and I'd like to achieve that with xterm but instead of displaying Arabic characters it shows dotted rectangles (whether I type them in the prompt or they are being output). However, if I try any other unicode text, uxterm is able to display it normally. I suspected the font being used by uxterm didn't have the Arabic glyphs

*VT100.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

so I randomly tried setting it to:

*VT100.font: -*-*-*-*-*-*-*-*-*-*-*-*-*-*

this worked and I got some Arabic to be displayed in uxterm. The issue is that I can't figure out a font which can display both Arabic, English and the rest of the unicode like the original fixed font did. I am also very fond of xterm's default font for English characters and I'd like to keep that. I think I read somewhere that (u)xterm is supposed to use a default font and then if it needs to display some glyph or character that isn't in that font, it falls to a second choice. Or that's not how it works?

1 Answer 1


xterm (uxterm is a script) uses either bitmap fonts or TrueType fonts. The resources indicated in the question are for bitmap fonts. To get "good" coverage of the Arabic, etc., would either take a large font or font-set support:

  • The existing bitmap fonts with good coverage are for small fontsizes (and perhaps not good enough).
  • Since font-set support by the X libraries used by xterm is less than adequate (see FAQ regarding Xaw's use of the feature), that means xterm would have to provide its own implementation of font-sets. (This is done by a few other terminals).
  • Since late 2018, xterm provides font-set support for TrueType fonts; you would need xterm patch #338 or later, e.g.,
    uxterm -fa mono

Here's a screenshot of Arabic using the ncurses test-program (page at U+0600): uxterm with Arabic

The highlighted cells are nonspacing.

The reason why there is no font-set support for bitmap fonts is that someone would have to manage the data to show which fonts are compatible and would be suitable. That's what fontconfig attempts to do (not always successfully). It can manage bitmap fonts, but the available information suggests that it will attempt to scale those, making the result worse than just selecting bitmap fonts directly.

  • this is nice, but I'd really like to keep using bitmap, the closest thing I've seen is perhaps in rxvt, it displays Arabic while still using bitmap for English. Any idea how I can get there? Jun 13, 2019 at 7:52
  • You could combine font-files, as discussed here. Jun 13, 2019 at 8:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .