Re: [dwm] dwm + xft
On Thu, 11 Sep 2008, Donald Chai wrote: Just specify multiple font patterns in config.h, separated by commas: static const char font[] = -*-fixed-medium-r-normal-*-12-*-*-*-*-*- *-*,-*-ukai-*-r-normal--*-*-*-*-*-* ; Thanks. It works now. Incidentally the original terminus font does not work with ukai font. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: [dwm] dwm + xft
On Sep 12, 2008, at 1:38 AM, Antoni Grzymala wrote: Donald Chai dixit (2008-09-11, 22:34): Just specify multiple font patterns in config.h, separated by commas: static const char font[] = -*-fixed-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-ukai-*-r-normal--*- *-*-*-*-* ; What does this syntax actually mean? Does it mean that X will look for glyphs in the following two fonts and stop whenever it will find a font with a necessary glyph? Yes, basically. The manpage for XCreateFontSet provides more details. (I only figured this out yesterday after I already implemented my pango patch.) I hope http://theka.tk/fuckup-1.png gets fixed. Caveat: if any of the patterns doesn't exist on the system, X may just revert to some default. E.g. I tried font[] = -*-terminus-*-*-*- *-12-*-*-*-*-*-*-*,-*-ukai-*-r-normal--*-*-*-*-*-* and I think X completely ignored 'ukai' because I don't have 'terminus' on my system. Filippo, if you're listening: This probably would be good to put in http://www.suckless.org/dwm/ customisation/font.html
Re: [dwm] dwm + xft
On Thu, 11 Sep 2008, Donald Chai wrote: I tried adding pango+xft support because bitmap CJK fonts suck, and also Sorry for my ignorance. The chinese font on my FF3 now looks ugly while it previously looks quite good using ukai under gnome. Does this patch fix all related font issue for programs run under dwm, or this patch only fix the font issue that appeared in the top statusbar? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: [dwm] dwm + xft
On Sep 11, 2008, at 8:14 PM, bill lam wrote: On Thu, 11 Sep 2008, Donald Chai wrote: I tried adding pango+xft support because bitmap CJK fonts suck, and also Sorry for my ignorance. The chinese font on my FF3 now looks ugly while it previously looks quite good using ukai under gnome. Does this patch fix all related font issue for programs run under dwm, or this patch only fix the font issue that appeared in the top statusbar? I hope the font in your statusbar looks okay, at least. :) The patch is to improve the fonts in the statusbar, and isn't supposed to affect fonts in other applications. If it does, then it's probably a bug. By looks ugly do you mean it's rendered with a different font, or that the font is improperly rendered? I've checked with rxvt-unicode and FF2 (Iceweasel), and everything looks fine. If I go to http://zh.wikipedia.org/wiki/孙燕姿, the statusbar and the FF2 text look fine. I can't run FF3 without upgrading all my libraries. I'll try to check again when I get to my machine running Debian testing. Note: 1) I only cracked open the Pango/Xft manuals yesterday. 2) My LANG is set to en_US.UTF-8 3) Arphic UKai is the only Chinese font I have installed Unfortunately, I can't do much to help you. Firefox doesn't seem to respond to the XFT_DEBUG environment variable, and I still can't figure out why FreeType renders Lucida Console differently on Mac and Linux.
Re: [dwm] dwm + xft
On Thu, 11 Sep 2008, Donald Chai wrote: bug. By looks ugly do you mean it's rendered with a different font, or that the font is improperly rendered? look like 15x16 character printed on an old dot-matrix printer. I've checked with rxvt-unicode and FF2 (Iceweasel), and everything looks fine. If I go to http://zh.wikipedia.org/wiki/孙燕姿, the statusbar and the FF2 text look fine. Not yet applied your patch, dwm display this on the statusbar Ko1m;Q - N,4pI42J!$+3E*I42JA4Ji I use en_HK.UTF8, I tried use some X11 chinese font but it still display rubbish on the statusbar for chinese title. Is there any method to display cjk font on the statusbar just using the X11 fonts? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Re: [dwm] dwm + xft
On Sep 11, 2008, at 9:54 PM, bill lam wrote: On Thu, 11 Sep 2008, Donald Chai wrote: bug. By looks ugly do you mean it's rendered with a different font, or that the font is improperly rendered? look like 15x16 character printed on an old dot-matrix printer. I've checked with rxvt-unicode and FF2 (Iceweasel), and everything looks fine. If I go to http://zh.wikipedia.org/wiki/孙燕姿, the statusbar and the FF2 text look fine. Not yet applied your patch, dwm display this on the statusbar Ko1m;Q - N,4pI42J!$+3E*I42JA4Ji I use en_HK.UTF8, I tried use some X11 chinese font but it still display rubbish on the statusbar for chinese title. Is there any method to display cjk font on the statusbar just using the X11 fonts? Just specify multiple font patterns in config.h, separated by commas: static const char font[] = -*-fixed-medium-r-normal-*-12-*-*-*-*-*- *-*,-*-ukai-*-r-normal--*-*-*-*-*-* ; They will look like characters printed on an old dot-matrix printer, which is why I bothered using pango. Try using awesome wm: http://awesome.naquadah.org/download/ If that works fine, then maybe I can try to learn from them.
[dwm] dwm + xft
Hello there. It's my first mail on this ML. I wonder if there is any possibility to use xft fonts in dwm. Becouse this patch http://koluthcka.ru/fwm/dwm-4.7-xft.diff doesn't work for me.
Re: [dwm] dwm + xft
2008/9/9 [EMAIL PROTECTED]: Hello there. It's my first mail on this ML. I wonder if there is any possibility to use xft fonts in dwm. Becouse this patch http://koluthcka.ru/fwm/dwm-4.7-xft.diff doesn't work for me. I guess this patch just needs to be upgraded to apply with vanilla dwm-5.2. Otherwise I think it should work fine. Kind regards, --Anselm