Re: TWM: truetype support

2008-02-07 Thread Eeri Kask
These cannot be consider finalised. In the meantime I was working on vtwm in porting some of these twm enhancements to vtwm. (In particular vtwm got a better infowindow spacing which I want to bring back to twm, among a few other things.) Then, SloppyFocus is getting into a good shape

Re: TWM: truetype support

2008-01-05 Thread Eeri Kask
Marc Aurele La France: At first, I really liked this idea, but I now realize that, because your spacing changes (as I have them integrated) are only effective for Xft fonts, Xft'ing bitmap fonts would change twm's default behaviour. Thus, I'd rather not call XftFontOpenXlfd(), which leaves

Re: TWM: truetype support

2008-01-04 Thread Marc Aurele La France
On Mon, 5 Nov 2007, Eeri Kask wrote: So, luckily we are now a step closed to the solution: let's not use 'fixed' as coded-in-default in twm.c if TWM_USE_XFT is defined, but '-*-fixed-*-*-*-*-*-*-*-*-*-*-*-*', and neither XListFonts() nor XftFontOpenXlfd() have any further difficulties! (Is

Re: TWM: truetype support

2007-11-01 Thread Eeri Kask
(1) In iconmgr.c.diff6 at the end is corrected a bug which leads to *multicolumn* iconmanager window width gradual collapse under certain circumstances while computing 'wwidth'. I observed this while resizing and/or moving the icon manager window and then terminating some client, say xcalc.

Re: TWM: truetype support

2007-10-22 Thread Eeri Kask
(I always considered the significantly simpler approach being enough: the user in enabling TWM_USE_XFT voluntarily passes the point of no return; if xft-font problems arise, then these are to be solved.) Well, that's the point. As you have it, the end user does _not_ in fact decide on

Re: TWM: truetype support

2007-10-20 Thread Marc Aurele La France
On Wed, 10 Oct 2007, Eeri Kask wrote: Eeri Kask wrote: (6) twm-1.0.3-diff6.Fixes.tgz Here are bugs I encountered in twm as improving icon manager functionality; some are serious. Such as? Please be more descriptive. (1) In iconmgr.c.diff6 at the end is corrected a bug which leads to

Re: TWM: truetype support

2007-10-12 Thread Eeri Kask
Oops. Use this one instead. Marc. Thank you very much! (In the moment I have to finish a conference paper but in few days I'll be back at twm.) Actually I only had in mind the part considering the memory leak. You have apparently completed a huge work in delaing with fallback to bitmap

Re: TWM: truetype support

2007-10-10 Thread Eeri Kask
Oh, I am happy you take the time to work on twm, big thanks! :-) (2) twm-1.0.3-diff2.TWM_USE_XFT.tgz introduces Xft support (replaces bitmap text rendering functions with xft-font rendering). [Compile with -DTWM_USE_XFT to activate.] This leaks memory in the form of XftDraw structures that

Re: TWM: truetype support

2007-10-10 Thread Eeri Kask
Eeri Kask wrote: (6) twm-1.0.3-diff6.Fixes.tgz Here are bugs I encountered in twm as improving icon manager functionality; some are serious. Such as? Please be more descriptive. (1) In iconmgr.c.diff6 at the end is corrected a bug which leads to *multicolumn* iconmanager window width

Re: TWM: truetype support

2007-10-10 Thread Marc Aurele La France
On Wed, 10 Oct 2007, Eeri Kask wrote: (2) twm-1.0.3-diff2.TWM_USE_XFT.tgz introduces Xft support (replaces bitmap text rendering functions with xft-font rendering). [Compile with -DTWM_USE_XFT to activate.] This leaks memory in the form of XftDraw structures that never get released. I've

Re: TWM: truetype support

2007-10-10 Thread Marc Aurele La France
On Wed, 10 Oct 2007, Eeri Kask wrote: Eeri Kask wrote: (6) twm-1.0.3-diff6.Fixes.tgz Here are bugs I encountered in twm as improving icon manager functionality; some are serious. Such as? Please be more descriptive. (1) In iconmgr.c.diff6 at the end is corrected a bug which leads to

Re: TWM: truetype support

2007-10-10 Thread Marc Aurele La France
On Wed, 10 Oct 2007, Marc Aurele La France wrote: I'm attaching a context diff of what I've done on this so far. It is against our main CVS repository as it stands now. Note that, as of this writting, our publicly accessible repository mirror has yet to be sync'ed (but it should be sometime

Re: TWM: truetype support

2007-10-08 Thread Marc Aurele La France
On Mon, 1 Oct 2007, Eeri Kask wrote: Here are patchsets (against Xorg twm release 1.0.3) completing and polishing Xft support for twm (and improving the icon manager): (1) twm-1.0.3-diff1.MyFont_ChangeGC.tgz to my knowing has not changed from last time: cleans up bitmap font drawing. OK.

Re: TWM: truetype support

2007-10-02 Thread Marc Aurele La France
On Mon, 1 Oct 2007, Eeri Kask wrote: Marc Aurele La France: The point of using XListFonts() is that it'll resolve fixed variable to their respective XLFDs which can then be passed to XftFontOpenXlfd(). I have installed Xorg 7.2.0 release and here XListFonts() returns fixed if called with

Re: TWM: truetype support

2007-10-01 Thread Eeri Kask
Marc Aurele La France: The point of using XListFonts() is that it'll resolve fixed variable to their respective XLFDs which can then be passed to XftFontOpenXlfd(). I have installed Xorg 7.2.0 release and here XListFonts() returns fixed if called with fixed, which XftFontOpenXlfd()

Re: TWM: truetype support

2007-10-01 Thread Eeri Kask
Eeri Kask wrote: This means, any performance degrading or huge memory footprint you are going to observe from now on will hopefully reveal problems only in the xft-subsystem and not in twm. Xft has disclosed probably a very old bug in twm! :-) (Drawing with a current screen GC onto a

Re: TWM: truetype support

2007-09-28 Thread Eeri Kask
As quick answer, I'd take two good ideas from you suggestion instantly: (1) Use XListFonts() instead of XLoadQueryFont() to test if a font is available; (2) Use DefaultFont as a first fallback if requested font could not be loaded. (I don't know if it makes sense to give a stderr warning that

Re: TWM: truetype support

2007-09-28 Thread Marc Aurele La France
On Fri, 28 Sep 2007, Eeri Kask wrote: As quick answer, I'd take two good ideas from you suggestion instantly: (1) Use XListFonts() instead of XLoadQueryFont() to test if a font is available; No. It is to test if it is a core font. (2) Use DefaultFont as a first fallback if requested

Re: TWM: truetype support

2007-09-27 Thread Eeri Kask
Marc Aurele La France wrote: xcompmgr -c -o 0.5 -r 6 -t -6 -l -9 in the background, this has no effect on anything. I found two keywords the only solution as menus and icons have too different transparency values in order to configure them with one keyword. I have MenuOpacity 245

Re: TWM: truetype support

2007-09-26 Thread Eeri Kask
Marc Aurele La France wrote: On Tue, 18 Sep 2007, Eeri Kask wrote: [] So compile with -DTWM_USE_XFT -I/usr/include/freetype2 -lXft Then insert TitleFontsans-9 MenuFontsans-9 IconFontsans-9:bold IconManagerFontsans-9 ResizeFontsans-10:bold If you are a twm

Re: TWM: truetype support

2007-09-26 Thread Eeri Kask
Eeri Kask wrote: Wait, please, don't commit yet! :-) [] Here are my current twm improvement patches, organised thematically: (1) Preparatory font rendering cleanup (should have no changes compared to last time). (2) Xft-support for twm, besides macro renaming the main improvement is:

Re: TWM: truetype support

2007-09-26 Thread Marc Aurele La France
On Wed, 26 Sep 2007, Eeri Kask wrote: Eeri Kask wrote: Wait, please, don't commit yet! :-) Here are my current twm improvement patches, organised thematically: [...] (3) Introduces twm menu and iconmanager (and icon) transparency, introducing two keywords: MenuOpacity,

Re: TWM: truetype support

2007-09-26 Thread Marc Aurele La France
On Wed, 26 Sep 2007, Eeri Kask wrote: Marc Aurele La France wrote: On Tue, 18 Sep 2007, Eeri Kask wrote: [] So compile with -DTWM_USE_XFT -I/usr/include/freetype2 -lXft Then insert TitleFontsans-9 MenuFontsans-9 IconFontsans-9:bold IconManagerFontsans-9 ResizeFont

TWM: truetype support

2007-09-18 Thread Eeri Kask
Hello, in order to reach broader audience I'll post my recent twm activities besides [EMAIL PROTECTED] here as well (assuming these audiences do not 100% cover)... :-) For twm users here are two patchsets introducing truetype font support into twm in two steps. (1)