You are not logged in.
Currently, I have dwm configured like so:
http://i.imgur.com/JsTurIO.png
But as you can see, in the upper left corner, my tag names aren't displaying properly, neither is the title of the directory I'm in (†††). I've tried the dwm-pango patch, but then I'm unable to get it to use the same font it uses currently for the menubar, which I would like it to do. I also have no idea what the name of the font it's currently using is.
So, two questions: is there a way I can get special characters to show up with dwm while maintaining the same font, and if not, how can I switch the font in my terminal windows so that I can match the statusbar and my other windows? I suspect the answer to the second is just some line in .Xresources which I can probably figure out unless there's something more complicated, but I'd rather just use the same font I'm currently using, but fix the special characters problem.
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Last edited by davidjosepha (2014-03-04 22:32:51)
Offline
Pango = fonts
xft = UTF-8 (special characters .. in most cases)
http://dwm.suckless.org/patches/xft
Last edited by GE (2014-03-04 22:40:19)
• WM: Openbox
• Resolution: 1366x768
• CPU: CPU: Intel Pentium CPU B980 @ 2.4GHz
• RAM: 2931MB
Offline
I'm getting an error when I try to build...
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directoryHowever, I've made sure freetype2 is installed properly and that ft2build.h is where it's supposed to be. Why might this be happening?
Edit: Managed to figure this out. But it's still not using a console font in dwm. How can I get it to use a font from /usr/share/kbd/consolefonts/?
Edit2: Reading some more, looks like this just might not be possible. I'm trying to find a font that's pretty similar to what I'm using, and it looks like terminus is close. However, unlike the other fonts I've been using, terminus hasn't been able to correctly display the greek alphabet in the menubar (although it displays fine in urxvt when using terminus).
Last edited by davidjosepha (2014-03-05 01:02:32)
Offline
I'm getting an error when I try to build...
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directoryHowever, I've made sure freetype2 is installed properly and that ft2build.h is where it's supposed to be. Why might this be happening?
Edit: Managed to figure this out. But it's still not using a console font in dwm. How can I get it to use a font from /usr/share/kbd/consolefonts/?
I'm trying to also get this to work but get the same error as you did.
How did you do to fix it?
Last edited by Epictek (2014-04-12 13:01:54)
Offline
davidjosepha wrote:I'm getting an error when I try to build...
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directoryHowever, I've made sure freetype2 is installed properly and that ft2build.h is where it's supposed to be. Why might this be happening?
Edit: Managed to figure this out. But it's still not using a console font in dwm. How can I get it to use a font from /usr/share/kbd/consolefonts/?
I'm trying to also get this to work but get the same error as you did.
How did you do to fix it?
You need to add a couple lines to config.mk in the source directory.
@OP: It's not entirely clear what your goal is. The XFT patch allows for unicode .ttf fonts, and affects the entire statusbar; the current Pango patch allows for fonts in languages with unique character sets (Cyrillic, CJK, Thai, etc.) but some Pango features only affect the right-hand statusline. If you're trying to add, say, symbols or icons to your tag names for a little eye-candy, you can use the XFT patch and use unicode characters. If you're trying to use a font for your native language, Pango would be the better choice. From what I can tell (C often doesn't come easily to me), it seems each patch replaces console font support entirely for its respective alternative. I'm not aware of any solution that could allow you to use a console font in DWM while displaying special characters; you'll probably have to pick whichever patch you feel is less invasive and detrimental.
EDIT: If you choose to apply a patch and then change the fonts in your terminal emulator, the latter depends on which terminal you're using. The wiki has articles on Xterm and Urxvt; other terminals will either have a configuration menu or file you can alter, probably mentioned in the man page.
Last edited by ANOKNUSA (2014-04-12 16:04:44)
Offline