Hi, Attached are two screendumps of nedit running with a Xft-enabled LessTif.
I've added the following to my ~/.Xresources for the demo :
*renderTable: xft
*xft*renditionForeground: blue
*xft*fontName: verdana
*xft*fontSize: 12
The colours reveal Xft use. All the blue shown, except the lines
starting with # (nedit's syntax highlighting), are Xft fonts.
The image shows all kinds of situations :
1. menu system : (XmCascadeButton) all Xft
2. the file name below menu bar : XmText, using Xft
3. the line number indicator (to the right of 2.) : XmLabel, using Xft
4. all text in the dialog is Xft based
5. text in the grey area is based on core font handling,
because this is nedit's own text widget which is a subclass of XmPrimitive
There are still three obvious open issues :
1. Geometry is incorrect, see e.g. the "menus.png" screendump, but also the
dialog in the other screendump.
2. Performance (nedit startup takes 3.46 seconds instead of 2.42 with Xft vs
core font handling). Yes this is an old PC. Keith indicated that we should
see performance improvement, not degradation, at startup.
3. Design a way for subclasses to behave.
LessTif in CVS now has build support for this so it is possible for all
to play with this.
Input, help, opinions, ... are all welcome.
Danny
--
Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
Home page : http://users.skynet.be/danny.backx
Projects: LessTif (http://lesstif.sourceforge.net)
Xbae (http://xbae.sourceforge.net)
<<inline: nedit.png>>
<<inline: menus.png>>
