> >From what I can figure is that Xft has been enabled (FLTK 
> 1.3 r6140).

Yup - the fltk-1.3 default is that XFT is on (although it can be turned
off at configure time.) The 1.1.x default was XFT off (but you could
tuen it on at configure time...)

> As a
> result fl_xfont will always be NULL (according to
> http://www.fltk.org/documentation.php/doc-1.3/osissues.html#os
> issues). The
> docs say to use fl_xftfont in this situation.
> 
> The problem is that the version of the Rotated files use only 
> fl_xfont.

Yup. Tricky.
IIRC (and this is just memory, I haven't bothered to look at the code
here) Rotated.c just draws the text to a bitmap then renders the bitmap
rotated (is that correct?) 
I guess the same trick might work, but...

With early versions of XFT (i.e. the 1.x versions) you could easily get
the X (bitmap) font related to the xft (anti-aliased) font, but xft-2 no
longer supports that directly. I put a nasty hack into the fltk XFT font
code for getting a suitable bitmap font from XFT fonts for use in the GL
rendering case, but that's pretty nasty. There is a better way (see
below.)

> Does anyone know where I can find a routine for drawing 
> rotated text when
> Xft is enabled?

OK, well, I was going to say I have code I wrote for drawing rotated
text with XFT that you might be able to use. But I can't find it - it's
not in the project I thought I wrote it for, and I can't find where I
have put it...
I'll have a look on my home machines, see what I can find.
But don't wait for me, I may be some time...




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to