You are not logged in.

#1 2013-03-24 16:47:57

danilo
Member
From: Switzerland
Registered: 2010-12-10
Posts: 25
Website

What font is my UXterm using?

I'm using UXterm. This is my .Xresources:

UXTerm*eightBitInput: false
UXTerm*metaSendsEscape: true
UXTerm*reverseVideo: true
UXTerm*bellIsUrgent: true
UXTerm*faceName: Terminus
UXTerm*faceSize: 7

Neither community/terminus-font nor aur/terminus-font-ttf are installed. This is what happens when I look for files named "Terminus" on my system:

danilo@t410:~$ locate Terminus
/usr/share/kbd/consolefonts/Lat2-Terminus16.psfu.gz
/usr/share/kbd/consolefonts/README.Lat2-Terminus16

The problem is that I'd like to patch the currently used font for Powerline, but don't know which font I'm using. I always thought I was using Terminus, but if you look at the shapes of the lowercase L character, you see that this isn't Terminus:

20130324_173855.png

Another difference can be seen in the N character:

20130324_174635.png

Here are Terminus screenshots for comparison: http://terminus-font.sourceforge.net/shots.html

When I remove the "UXTerm*faceName: Terminus" line from my .Xresources, the font changes and looks like this:

20130324_174230.png

So the line clearly does have an effect. Something else I discovered was that if I ctrl-rightclick in the terminal and remove the checkmark next to "TrueType fonts", the font immediately changes and looks like the last screenshot above.

So apparently adding the "UXTerm*faceName: Terminus" line to .Xresources makes UXterm switch to some true type font which is not Terminus.

Is there a way to find out which true type font is currently loaded in UXterm?


"Freedom is the freedom to say that two plus two make four. If that is granted, all else follows." - George Orwell

Offline

#2 2013-03-24 17:39:33

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: What font is my UXterm using?

The default TrueType font for xterm and its variants is set to use the font matching the name 'mono'.  Check with:

$ fc-match mono

It is most likely DejaVu Sans Mono.

The bitmap fonts selectable from the Unicode Fonts menu are specified in '/usr/share/X11/app-defaults/UXTerm'.  "Default" is given as:

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

Other than the ISO encoding, this is the same font as 'fixed' and '6x13'.

Last edited by thisoldman (2013-03-24 17:40:26)

Offline

#3 2013-03-24 21:03:38

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: What font is my UXterm using?

danilo wrote:

Is there a way to find out which true type font is currently loaded in UXterm?

xrdb -query | grep xft:

:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2013-03-24 21:58:36

danilo
Member
From: Switzerland
Registered: 2010-12-10
Posts: 25
Website

Re: What font is my UXterm using?

thisoldman wrote:

The default TrueType font for xterm and its variants is set to use the font matching the name 'mono'.  Check with:

$ fc-match mono

It is most likely DejaVu Sans Mono.

Thanks a lot, you were right! smile

danilo@t410:~$ fc-match mono
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

Last edited by danilo (2013-03-24 21:58:50)


"Freedom is the freedom to say that two plus two make four. If that is granted, all else follows." - George Orwell

Offline

#5 2013-03-24 22:19:26

elkoraco
Member
Registered: 2013-02-18
Posts: 140

Re: What font is my UXterm using?

The true type font is Dejavu Sans Mono. The bitmap one in your screenshot is Fixed.

Offline

Board footer

Powered by FluxBB