[comp.windows.x] question on "cursor" font & XDrawImageString

bertrand@cui.unige.ch (IBRAHIM Bertrand) (03/08/89)

I am interested in displaying small arrows in a window. Instead of drawing
them I thought I could use those that are present in the "cursor" font file and
use XDrawImageString to display them.  As you may guess, this doesn't work as I
expected. 

My question is the following: How can I draw a shape that can be found in the
"cursor" font file?

I am using X11R2 on a monochrome Sun 3/50 under SunOS 3.5. I do not use Xt
since I am programming in Ada.

advTHANKSance for your help,

Bertrand Ibrahim
              to BITNET                             to EAN
from
BITNET IBRAHIM@uni2a.unige.ch                  bertrand%cui.unige.ch@CERNVAX
ARPA   IBRAHIM%uni2a.unige.ch@CUNYVM.CUNY.EDU  bertrand%cui.unige.ch@ubc.csnet
UUCP                                           cernvax!cui!bertrand.uucp
UUCP                                           mcvax!cernvax!cui!bertrand.uucp
UUCP                                           cui!bertrand@cernvax.UUCP
EAN                                            bertrand@cui.unige.ch
JANET                                      bertrand%cui.unige.ch@uk.ac.ean-relay

swick@ATHENA.MIT.EDU (Ralph R Swick) (03/10/89)

> My question is the following: How can I draw a shape that can be found in the
> "cursor" font file?

The same way you draw any other glyph from a font.  You just have to
know it's index.

try running examples/Xaw/xlabel -fn cursor -label '2480*(@#$'
(it works just fine).