Re: [dev] about patch xft on FreeBSD

2012-05-13 Thread Ethan Grammatikidis
On Sun, 13 May 2012 22:06:23 -0400 Lee Fallat wrote: > I think I do that but doesn't work because I used XLFDs. I've made > improvements so it uses xftpatterns and doesn't have that (BAD) memory > leak. I'll get it up by tomorrow. It now works with dwm-tip, so there > should be zero problems. Sor

Re: [dev] about patch xft on FreeBSD

2012-05-13 Thread Lee Fallat
I think I do that but doesn't work because I used XLFDs. I've made improvements so it uses xftpatterns and doesn't have that (BAD) memory leak. I'll get it up by tomorrow. It now works with dwm-tip, so there should be zero problems. Sorry for the hassle! It's my first time working with Xft/X in gen

Re: [dev] about patch xft on FreeBSD

2012-05-13 Thread Ethan Grammatikidis
On Sat, 5 May 2012 20:22:57 -0400 Lee Fallat wrote: > fix dwm so if it can't find the font it'll load some default one that's fixed. Everything falls back to fixed which is an alias expected to be present on every X server.

Re: [dev] about patch xft on FreeBSD

2012-05-06 Thread alphachi
I droped the idea for the time being. Perhaps I need research the source code of dwm in FreeBSD Ports. Thanks all guys!

Re: [dev] about patch xft on FreeBSD

2012-05-05 Thread Lee Fallat
How did you put the font in config.h? It uses XLFD format (not sure if I spelt that right...). It will crash if it can't find the font you specified. My patch really isn't the greatest but is a start. I guess I'll fix dwm so if it can't find the font it'll load some default one that's always on a s

Re: [dev] about patch xft on FreeBSD

2012-05-05 Thread alphachi
I tried Droid San Fallback ( it support CJK) and patch xft. The building is OK, but dwm "core dump" when startx.

Re: [dev] about patch xft on FreeBSD

2012-05-03 Thread Lee Fallat
It only implements TTF fonts. I think antialias is dependent on fontconfig or something? My fonts looks antialiased. Try dejavu with a font size of 12, or use mkfontdir and mkfontscale on a ttf font to see what sizes are 'optimal'. On Thu, May 3, 2012 at 10:16 PM, alphachi wrote: > After modifie

Re: [dev] about patch xft on FreeBSD

2012-05-03 Thread alphachi
After modified to INCS = -I. -I/usr/include -I${X11INC} -I/usr/local/include/freetype2, the building is OK, but still no font antialias and CJK supports.

Re: [dev] about patch xft on FreeBSD

2012-05-03 Thread Lee Fallat
Yeah, I've been meaning to fix the config.mk error. I'll put up a fix this weekend, but you should be fine looking at the .rej file and placing the fix in yourself. On Thu, May 3, 2012 at 10:46 AM, Ruben Gonzalez Arnau wrote: > Hi, > > Try to change this on config.mk > > INCS = -I. -I/usr/includ

Re: [dev] about patch xft on FreeBSD

2012-05-03 Thread Ruben Gonzalez Arnau
Hi, Try to change this on config.mk INCS = -I. -I/usr/include -I${X11INC} to INCS = -I. -I/usr/include -I${X11INC} -I/usr/local/include/freetype2 Hope it helps. On 05/03/2012 15:34, alphachi wrote: Hello! I'm using dwm 6.0 on FreeBSD 9.0 Release amd64. I need font antialias and CJK suppor

Re: [dev] about patch xft on FreeBSD

2012-05-03 Thread Carlos Torres
Looks like you don't have freetype or freetype dev headers. On May 3, 2012 9:34 AM, "alphachi" wrote: > Hello! > > I'm using dwm 6.0 on FreeBSD 9.0 Release amd64. I need font antialias and > CJK supports for statusbar. When I patch > http://dwm.suckless.org/patches/dwm-6.0-xft.diff, some errors s

[dev] about patch xft on FreeBSD

2012-05-03 Thread alphachi
Hello! I'm using dwm 6.0 on FreeBSD 9.0 Release amd64. I need font antialias and CJK supports for statusbar. When I patch http://dwm.suckless.org/patches/dwm-6.0-xft.diff, some errors show: # cd /usr/ports/x11-wm/dwm/work/dwm-6.0/ # patch -p1 < ~/dwm-6.0-xft.diff Hmm... Looks like a unified diff