T.R | Title | User | Personal Name | Date | Lines |
---|
2491.1 | HEre's a hack | DECWIN::FISHER | Prune Juice: A Warrior's Drink! | Wed Mar 21 1990 17:32 | 9 |
| No. Getting information back from the server is not one of X's strong
points.
Actually, I take that back...here is a hack: Make a pixmap, use
PolyText to write the cursor font into the pixmap. Use GetImage to get
the bits back. (Yuk)
Burns
|
2491.2 | Does PolyText exist? | CADSE::LOUREIRO | Dr. Spot | Thu Mar 22 1990 12:35 | 7 |
| I could not find the routine PolyText in my documentation? Does this
routine exist? Or should I use something like DrawString16? Also,
will I be able to recover the Hot X and Hot Y values of the cursor
with GetImage?
Thanks.
- Rob
|
2491.3 | yes, but not where you looked. | DECWIN::JACKIE | Jackie Ferguson | Fri Mar 23 1990 11:22 | 4 |
| Burns likes to speak protocol. PolyText{8,16} are the protocol requests
that the DrawString{,16} and DrawText{,16} routines generate.
Jackie
|
2491.4 | Hotspot | DECWIN::FISHER | Prune Juice: A Warrior's Drink! | Fri Mar 23 1990 15:01 | 14 |
| Sorry, I'm a server freak. Xlib does not exist to me except as an engine
to feed the voracious mouth of the server. Toolkit? What's that? :-)
But aside from that...
The hot spot is defined to be the character origin. You should be able to
get this out of XLoadQueryFont. I think what you need to do is look at
leftbearing in XCharStruct to get the X hotspot and ascent in the same structure
to get the Y hotspot (measuring from the top). The pixmap you want to write
it into must be leftbearing + rightbearing in width and ascent+decent in
height. The location you must position to when you do XDraw whateveritis is
(leftbearing,ascent). (I think).
Burns
|