Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dwm statusbar special characters
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
slag
n00b
n00b


Joined: 17 Feb 2005
Posts: 30

PostPosted: Tue Mar 11, 2014 12:20 am    Post subject: dwm statusbar special characters Reply with quote

Special characters aren't displaying in the dwm statusbar. I'm currently using wqy-bitmapfont (trying to get asian language support) but I've also tried terminus. Even basic special characters such as apostrophe and em-dash aren't displaying.

Any ideas? Here are the test pages I'm using:
http://home.sina.com/ (Chinese characters - not visible)
http://www.last.fm/music/%E7%8E%8B%E8%8F%B2 (Chinese characters - not visible)
http://www.last.fm/user/a (displays "as Music Profile..." instead of "a's Music Profile...")

I've tried re-emerging dwm with a few patches for unicode support:
Code:

# ls /etc/portage/patches/x11-wm/dwm-6.0/
dwm-6.0-pango.diff  dwm-6.0-xft.diff


..but no go... any suggestions, please advise.
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Tue Mar 11, 2014 4:29 pm    Post subject: Reply with quote

How do you define font in config.def?
With xft/pango patches applied you can try something like this:
Code:
static const char font[]            = "Dejavu Sans Mono:medium:size=10";


You may also find this useful.
Back to top
View user's profile Send private message
pale3
n00b
n00b


Joined: 29 May 2013
Posts: 5

PostPosted: Wed Mar 12, 2014 1:10 am    Post subject: Reply with quote

as Tractor Girl sad,
for special character you need to have dwm patched against pango or xft
here is what I am using:
Code:
 static const char font[] = "Nimbus Sans:pixelsize=12:antialias=true:autohint=true";
Back to top
View user's profile Send private message
slag
n00b
n00b


Joined: 17 Feb 2005
Posts: 30

PostPosted: Wed Mar 12, 2014 6:56 am    Post subject: Reply with quote

I think that the patches did not apply correctly. If I use the xfontsel format string in config.h, the font changes correctly. But if I use the xft style string, no change in statusbar.

I guess I'll try patching manually next. Did any of you use autopatch? e.g. place patch files in /etc/portage/patches/x11-wm/dwm-6.0/ ? When I emerge dwm I can see that there is a patching phase that wouldn't otherwise occur, but I don't get any details on what was patched. I'm pretty sure something's wrong with the autopatching. Maybe I have to change these to .patch files instead of .diff?
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Wed Mar 12, 2014 11:55 am    Post subject: Reply with quote

Quote:
Maybe I have to change these to .patch files instead of .diff?

You should! Otherwise portage will not apply any patches.
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