I don't know about Motif, but for LessTif a rendition is a fontlistentry,
and a rendertable is a fontlist. Except the render* are more powerful.

Basically that's also what the Motif docs say. They even share the
same resource, but you can specify it both as a fontList and as
a renderTable. Also per Motif's docs.

What I did a year ago or so when I did the Rend* stuff for LessTif
was implementing all this without doing double work. Meaning that
XmRend* stuff is basically present in the 1.2 version of LessTif,
but the API is missing. In the 2.* versions obviously it is more
complete.

The Motif docs have stuff in them that basically say even how
these structures are cached (because they talk about sharing them).
I'm not sure whether I have all that right in LessTif but nobody's
complained yet.

As there is sharing involved, threading might be an issue. Or maybe
that's not what you meant.

Testing. Ah well. I've built a couple of tests that are explicitly
mentioned in the status messages (for this purpose). Also I've been
using Nedit as a testbed, with the X defaults settings that I mailed
about in the last week or so :
                dell: {12} head .Xresources 
                !
                ! Xft Experiments
                !
                *renderTable:   xft
                *xft*renditionForeground:       blue
                *xft*fontName:                  verdana
                *xft*fontSize:                  12
                !

        Danny

Rick Scott wrote:
> I've been grepping for USE_XFT. My biggest problem, so far, is not knowing what
> a rendition is :) More accuratly, how to use it, I think I know what it's for.
> So far I've added to the __XmRenditionRec and am trying to find out where it
> gets initialized. Seems to be a big difference here :) There seems to be alot
> of comments around threads and fontLists....
> 
> I've been getting 2 or 3 copies of the status messages :) I'll probably be
> getting at least one more now that I'm back on the lesstif list. What I will be
> interested in is how you are testing this stuff. I'll have to check back in my
> messages to see what you've said about that.
> 
> On  8-Nov-02 at 11:32, Danny Backx ([EMAIL PROTECTED]) wrote:
> > Rick Scott wrote:
> > > Okay, I'm back on this list and starting to look at the xft/openmotif
> > > stuff, not real sure where to start yet. Any pointers Danny?
> >
> > I basically modified only a small number of files. Much of my impact
> > analysis is based on grepping the source for XmFONT_IS_ . The work
> > I did was adding code to deal not only with XmFONT_IS_FONT or
> > XmFONT_IS_FONTSET but also with XmFONT_IS_XOC (reserved for IBM's
> > BIDI) and XmFONT_IS_XFT.
> >
> > Structures modified are limited :
> >      struct __XmRenditionRec          XmI/XmI.h
> >      struct _OutputDataRec          Xm/TextOutP.h
> >      XmTextFieldPart               Xm/TextFP.h
> >
> > Source files :
> >      lib/Xm/FontList.c
> >      lib/Xm/ResConvert.c
> >      lib/Xm/TextF.c
> >      lib/Xm/TextOut.c
> >      lib/Xm/XmString.c
> >      lib/Xm-2.0/RenderTable.c
> >
> > I've sent status messages to several lists, I assume you've seen
> > those at least once each.
> >
> > Apart from the stuff I mentioned a couple of days ago, and Keiths
> > reply to that (at first sight he's right), I also still need to
> > implement a small cache as mentioned at the end of FontList.c .
> >
> > Also I need (to make) a small app to benchmark stuff. One problem with
> > comparing X Core font rendering and Xft is that rendering takes
> > place in another process so measuring its timing needs to happen
> > with care.
> >
> > Does this help ? Do you want me to resend the status messages ?
> >
> >      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)
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to