[comp.windows.x] Clipping off + Rotate Text + Transparent Window

hara@ascway.UUCP (Kenzo Hara) (08/19/88)

	 I have the following questions/issues about X11; 
	
	1) Clipping off in a window.

	   I'd like to draw some labels/axes around a window ( called viewport 
	  in a usual graphics world). For that purpose, I tried to change a
	  clip region using XSetClipRectangles, but it only works for within a
	  window. Is there any way to do that?

	2) Rotate text 

	    Mainly for the same reason as the above, we need to rotate the text 
	   in the specified angle, at least vertically as well as horizontally. 

	3) Transparent Window (Overlay window) 

	   How can we make a transparent window using X?
	   Is it possible? 

	4) Recently, I heard about X.V11R3 , but do you know when it'll be
	   distributed? What are the major changes in R3 compared with R2? 
	   

	Those issues are very critical for our applications, so I really 
	appriciate your help. 

	Best Regards,

	Kenzo Hara
	Schlumberger
	spar!ascway!hara@decwr1.dec.com

garfinke@hplabsb.UUCP (Dan Garfinkel) (08/19/88)

>
>	2) Rotate text 
>
>	    Mainly for the same reason as the above, we need to rotate the text 
>	   in the specified angle, at least vertically as well as horizontally. 

There is no "easy" way to do this with X.  However, I've seen two different
solutions to rotating text.  

	1) Use "stroke fonts" (or any other non-raster fonts) and rotate 
	   the points of the characters to draw at any angle you wish.

	2) Create a raster font with the glyphs rotated 90 degrees and 
	   use X text calls to write them out a character at a time.
	   (I know someone who did this under X10 and it worked pretty
	   well).


-Dan Garfinkel / HPLabs

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (08/20/88)

    Date: Thu, 18 Aug 88 17:31:37 CDT
    From: Kenzo Hara <spar!ascway!hara@decwrl.dec.com>

       I'd like to draw some labels/axes around a window ( called viewport 
      in a usual graphics world). For that purpose, I tried to change a
      clip region using XSetClipRectangles, but it only works for within a
      window. Is there any way to do that?

Sorry, I don't understand what the question is.

	Mainly for the same reason as the above, we need to rotate the text 
       in the specified angle, at least vertically as well as horizontally. 

As someone else pointed out, there is no real support for this.

       How can we make a transparent window using X?

Depends a lot on what you mean by a transparent window, what
requirements you have.  An InputOnly window is one form of transparent
window; a window with background None is a form of once-transparent
window; xor on a monochrome display is a form of transparency, and
playing color cell allocation games is another form of transparency.

    4) Recently, I heard about X.V11R3 , but do you know when it'll be
       distributed?

Yes. :-)

At SIGGRAPH I made the claim that that the release date was "Octoberish,
this yearish".  That's still trueish.

    What are the major changes in R3 compared with R2? 

The ones that you will see when it is released. :-)