Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Font issues with st and dmenu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Mon Mar 23, 2015 8:30 pm    Post subject: [SOLVED] Font issues with st and dmenu Reply with quote

Hello,

I'd like to use terminus font (-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*) for the above. Both applications are behaving defferently using the same font.

Dmenu is displaying blocks instead of actual characters. Here's a screenshot of it.

St is compiled with
Code:
static char font[] = "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*";
in its config.h, yet by default uses some xorg default. if I start st with
Code:
st -f "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
it starts using terminus as expected.

Last edited by bstaletic on Sat Apr 18, 2015 11:51 am; edited 1 time in total
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Mon Mar 23, 2015 8:46 pm    Post subject: Reply with quote

Run strings /usr/bin/st (or where ever your binary is located) and check the output for -*-terminus-medium-r-*-*-14-*-*-*-*-*-*-* - It it is missing I'd guess you have the savedconfig USE flag enabled an an old, differing value in the saved config.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Mon Mar 23, 2015 8:51 pm    Post subject: Reply with quote

There's no output from running /usr/bin/st. I have enabled savedconfig, and here's the content of /etc/portage/savedconfig/x11-terms/
Code:

bstaletic@gentoo ~ % ls -A /etc/portage/savedconfig/x11-terms/ 
st-0.5
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Tue Mar 24, 2015 4:27 pm    Post subject: Reply with quote

I see - I didn't make myself clear. My fault!

I advised to run the "strings" command on "/usr/bin/st" so:

Code:
strings /usr/bin/st
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Tue Mar 24, 2015 8:55 pm    Post subject: Reply with quote

For some reason st wasn't using the config i edited, well that part is solved now.

That leaves only dmenu. Actually it might be a problem with dwm. I applied the tab patch, and the bottom bar containing the window names, is behaving the same as dmenu used by dwm. If I use strings on /usr/bin/dwm it will show the expected terminus font.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Tue Mar 24, 2015 9:12 pm    Post subject: Reply with quote

I'm not sure if this applies to you as I'm using a somewhat modified HEAD (from git), but for me there is a special dmenufont that does not necessarily match the normal dwm font:

Code:
static const char dmenufont[] = "....";
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Tue Mar 24, 2015 9:18 pm    Post subject: Reply with quote

There's no dmenufont variable. What's strange is font "-*-*-medium-r-*-*-14-*-*-*-*-*-*-*" renders the desired terminus font, yet using "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" produces squares instead of characters. So I found a workaround for this problem, and if i don't get to the actual solution I'll mark the thread as solved.
Back to top
View user's profile Send private message
lotuskip
n00b
n00b


Joined: 24 Aug 2014
Posts: 14

PostPosted: Sun May 03, 2015 7:27 am    Post subject: Reply with quote

Had this exact same problem after updating terminus-font & corefonts. emerge gave a message about a new font that I can enable with eselect fontconfig called "75-yes-terminus.conf". Whether it is enabled or not doesn't seem to matter as was as my experience with dwm goes.

Having no time/patience to investigate this right now, I resorted to bstaletic's solution, which works, but I have no clue what the problem is. (Fonts in Linux have always been a little foggy for me, and perhaps even more so in Gentoo. I'm probably unaware of a lot of very basic stuff in that area.)
Back to top
View user's profile Send private message
LaurVas
n00b
n00b


Joined: 23 Jul 2015
Posts: 1
Location: Russia, Moscow

PostPosted: Wed Jul 29, 2015 8:23 am    Post subject: Reply with quote

I have similar problem. When launching dmenu with Terminus font, it displays blocks instead of symbols.
Code:
dmenu -fn '-*-terminus-bold-r-*-*-17-*-*-*-*-*-*-*'

This font works fine in urxvt. Also, I've tested the same command in Arch Linux and the font renders as it should.

There is no such problem when launching with Dina font
Code:
dmenu -fn '-*-dina-bold-r-*-*-17-*-*-*-*-*-*-*'


I've found a nice solution:
Code:
LC_ALL=C dmenu -fn '-*-terminus-bold-r-*-*-17-*-*-*-*-*-*-*'


Should I file a bugreport?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum