You are not logged in.

#1 2013-09-02 18:45:44

mixer
Member
Registered: 2013-08-16
Posts: 47

[SOLVED] XTerm and the Terminus font

I having difficulty getting the Terminus font to display correctly in xterm.

In .Xresources;

When I use "xterm*faceName:Terminus:style=Regular:size=10" I get missing characters, like the curly quotes in man pages.  This line is from the wiki.

When I use "xterm*font:-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*" there are no missing characters (that I've found).  However, the display output (like paging a text file, for example) is much slower.  Too slow, so I go back to the missing characters config.

One other issue I've noticed, which may be related.  When I use the control-mousebutton menus, they display very slowly taking 2 or 3 seconds to draw. This happens even without loading my .Xresources file.

Also note I'm using fontconfig-infinality-ultimate.

My complete .Xresources file:

xterm*Background:black
xterm*Foreground:white
xterm*cursorColor:green
!xterm*pointerShape:arrow
!xterm*pointerColor:blue
xterm*VT100.geometry:80x32
xterm*faceName:Terminus:style=Regular:size=10
!xterm*font:-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
!xterm*faceName:Inconsolata:style=Regular:size=11
!xterm*font:-*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
!xterm*renderFont:false
xterm*dynamicColors:true
xterm*utf8:2
xterm*eightBitInput:true
xterm*saveLines:4096
xterm*scrollKey:true
xterm*scrollTtyOutput:false
xterm*scrollBar:true
xterm*rightScrollBar:true
xterm*jumpScroll:true
xterm*multiScroll:true
xterm*toolBar:false
xterm*locale:true
xterm*termName:xterm-256color
xterm*metaSendsEscape:true

Last edited by mixer (2013-09-03 03:56:33)

Offline

#2 2013-09-02 21:39:25

dickey
Member
Registered: 2009-06-01
Posts: 35

Re: [SOLVED] XTerm and the Terminus font

xterm is approximating the quotes in the case where you've reported it working correctly, because it detects a missing character.
It sounds as if either the font data is misleading, or there's a bug in Xft, etc., causing xterm to not see that it's missing in the other case.

Offline

#3 2013-09-02 22:48:17

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] XTerm and the Terminus font

That sounds right.  When using another a different terminal and font the missing characters are curly quotes.  When using the "working" config above it approximates them as straight quotes.

I'm not sure how to check if the missing characters are even in Terminus.  I assumed that common characters would be.

Offline

#4 2013-09-02 23:20:01

dickey
Member
Registered: 2009-06-01
Posts: 35

Re: [SOLVED] XTerm and the Terminus font

Terminus has only 256 characters; the quotes used by groff are Unicode values around 8000.

(I noticed a perhaps-equivalent omission in the Xft side of xterm, and have a fix which will be in #297).

Offline

#5 2013-09-03 02:06:03

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] XTerm and the Terminus font

Thanks for your help.

Offline

#6 2013-09-03 03:56:13

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] XTerm and the Terminus font

Switching to rxvt-unicode (plus rxvt-unicode-terminfo) fixed my problem with speed and missing Terminus characters.  I'm using the setting:

URxvt*font:xft:Terminus:pixelsize=14

The part that I don't understand is, if I specify my font as follows I get all the characters but slow display:

URxvt*font:-*-terminus-medium-r-normal-*-16-*-*-*-*-*-iso10646-*

Last edited by mixer (2013-09-03 03:58:01)

Offline

#7 2013-09-03 06:53:58

dickey
Member
Registered: 2009-06-01
Posts: 35

Re: [SOLVED] XTerm and the Terminus font

rxvt-unicode is loading multiple fonts to fill in missing glyphs.  This is sometimes good, sometimes not.
For "slow" case you've referred to, that's probably a difference in how the X server is handling the fonts
rather than the terminal program itself.

Offline

#8 2013-09-07 00:25:59

dickey
Member
Registered: 2009-06-01
Posts: 35

Re: [SOLVED] XTerm and the Terminus font

mixer wrote:

Switching to rxvt-unicode (plus rxvt-unicode-terminfo) fixed my problem with speed and missing Terminus characters.  I'm using the setting:

URxvt*font:xft:Terminus:pixelsize=14

The part that I don't understand is, if I specify my font as follows I get all the characters but slow display:

URxvt*font:-*-terminus-medium-r-normal-*-16-*-*-*-*-*-iso10646-*

You commented that this flavor (the XLFD form) is slow with both xterm and urxvt.
As I noted, the problem is in how the server handles the fonts.

urxvt's equivalent to xterm's "-fa" option is a feature introduced by konsole (a "xft:" prefix on the string).

Actually you don't get "all" of the characters.  To see this, use xfd.  The 10646 encoding appears to be the
original terminus (a small set of 256 characters) with a few others added.  But most of the 0-65535 range is
filled with a filler-character.

Offline

Board footer

Powered by FluxBB