You are not logged in.

#1 2017-10-21 01:23:53

Gradient
Member
Registered: 2013-05-19
Posts: 101

[Solved] Font is not loaded in .Xresources

I am trying to display Chinese characters in uxterm (they are currently blank). Here is my .Xresources:

*faceName: DejaVu Sans Mono
*faceNameDoublesize: WenQuanYi Bitmap Song

The output of lsof -p <xterm pid> | grep fonts contains

/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf
/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf
/usr/share/fonts/TTF/DejaVuSansMono.ttf

This means that DejaVu is correctly loaded. If I set faceNameDoublesize to something like Liberation Mono, both DejaVu and Liberation are loaded (as seen in lsof output). So, I think my issue is with the font WenQuanYi Bitmap Song. I have read this section of the wiki.

I have installed ttf-dejavu, ttf-liberation, wqy-bitmapfont.

Did I install the right package? How can I make it load correctly?

Last edited by Gradient (2017-10-21 01:39:19)

Offline

#2 2017-10-21 01:38:58

Gradient
Member
Registered: 2013-05-19
Posts: 101

Re: [Solved] Font is not loaded in .Xresources

With the command fc-list, I could find that the configuration should be

*faceNameDoublesize: WenQuanYi WenQuanYi Bitmap Song

Chinese characters now display correctly.

I have also updated the wiki.

Offline

#3 2017-10-21 01:43:58

GenkiSky
Member
From: This account is henceforth dis
Registered: 2017-04-04
Posts: 82

Re: [Solved] Font is not loaded in .Xresources

Looks like the wqy font name is "WenQuanYi WenQuanYi Bitmap Song"  while the config you give just has "WenQuanYi Bitmap Song" (i.e., missing the first "WenQuanYi"). It's my understanding that the names have to match exactly, so I would try that first. If that turns out to be the issue, going forward, you can use fc-list(1) to see what name to use.

Edit: Looks like you beat me to it smile

Last edited by GenkiSky (2017-10-21 01:44:22)

Offline

Board footer

Powered by FluxBB