Xlib and rotated text?

Peter Harris pharris at opentext.com
Thu Mar 17 12:30:52 PDT 2011


On 2011-03-17 13:52, Chris wrote:
> I've had a look at freetype, but it seems like overkill for what I
> need and also a dependency I'm not sure I can "afford" (and it seems
> that then I also need fontconfig). So this is a last resort for me.

You want to use ciaro/pango/fontconfig/freetype for this, rather than
re-inventing the wheel.

> So, can I do it in Xlib without writing the complete matric algebra
> by myself (if so, where can I find an example/manual/tutorial),

If you really really want to use as few libraries as possible, you could
draw your text onto a pixmap, then rotate it to your window using
XRenderSetPictureTransform and XRenderComposite.

http://cgit.freedesktop.org/xorg/proto/renderproto/tree/renderproto.txt#n705

http://cgit.freedesktop.org/xorg/lib/libXrender/tree/include/X11/extensions/Xrender.h#n267

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866



More information about the xorg mailing list