Path: utzoo!attcan!uunet!trwacs!epstein From: epstein@trwacs.UUCP (Jeremy Epstein) Newsgroups: comp.windows.x Subject: Re: Rotating Text Message-ID: <225@trwacs.UUCP> Date: 19 Nov 90 15:04:56 GMT References: <9011160929.AA02439@Larry.McRCIM.McGill.EDU> Organization: TRW Systems Division, Fairfax VA Lines: 23 In article <9011160929.AA02439@Larry.McRCIM.McGill.EDU>, mouse@LARRY.MCRCIM.MCGILL.EDU writes: > > I am trying rotate text 90 degrees counter clockwise in an > > XSimpleWindow. Does anybody have a clue? > > As far as I can tell, your only choice if you want to stay within the > core X protocol is to display the text into something offscreen - a > pixmap or bitmap - and read it back (XGetImage), rotate it "by hand", > send it over to the server again (XPutImage), and display it as a > bitmap image. Another solution which has been proposed is to come up with a rotated font, and to load one glyph at a time. The application then has to figure out glyph placement by itself (retch). This is a question that gets asked quite regularly...can it be added to the Frequently Asked Questions list??? --Jeremy -- Jeremy Epstein UUCP: uunet!trwacs!epstein Trusted X Research Group Internet: epstein@trwacs.fp.trw.com TRW Systems Division Voice: +1 703/876-8776 Fairfax Virginia