Around 16 o'clock on Oct 28, Steve Kirkendall wrote:
> I use XftDrawSetClip() to set a clipping region temporarily.
> How can I end clipping afterward? Do I need to define a new
> clipping region the size of the whole Drawable?
XftDrawSetClip (d, 0);
> The clipping region is specified by a Region, which is created
> by XCreateRegion(). I understand that. But when should I call
> XDestroyRegion()?
The region is yours; Xft doesn't retain a pointer to it. If you're done
with it at this point, you should destroy it.
> The Xlib and Xft versions of the Courier font seem to be the same
> size, but the "Andale mono" font is larger in Xft than in Xlib.
> Is this normal, or is there something wrong with my configuration?
This is normal; Andale mono has some intra-line leading added.
> I guess what I'm really asking here is, should I go to the trouble
> of saving separate sizes for chunky vs. antialiased fonts?
You should just drop support for core fonts; they're no longer necessary
on any system. Then you can switch elvis to a pure UTF-8 internal
encoding and move translation to the file system interface where it
belongs.
You'll also want to investigate the adventures of FcFontSort so that elvis
can draw arbitrary strings of Unicode text. Pango and Mozilla have
examples of this particular function; I'm still considering how to wrap
this in a convenient Xft package for mere mortal applications.
Keith Packard XFree86 Core Team HP Cambridge Research Lab
_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render