Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!sdd.hp.com!elroy.jpl.nasa.gov!ames!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: How to Get 90 degree Rotated Fonts? Message-ID: <863@auto-trol.UUCP> Date: 7 Oct 90 16:07:13 GMT References: Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Distribution: comp.windows.x Organization: Auto-trol Technology, Denver Lines: 23 In article khai@adi.com (S. Khai Mong) writes: >How would one get a font rotated +/-90 degrees in X so that I can draw >text running vertically? > >The solution should be a run-time one. The user specifies a given >font for an application and I wish to use that font for horz and vert >text. I can't and don't want to define a new font. >-- >Sao Khai Mong: Applied Dynamics, 3800 Stone School Road, Ann Arbor, Mi48108 >(313)973-1300 (uunet|sharkey)!amara!khai khai@adi.com What about drawing all characters in your font into an off-screen bitmap, reading it with XGetImage, swapping rows/columns in each character, loading it back into (another) off-screen bitmap, and from there on use XCopyPlane for each character ? [ yeep, XPutFontBitmap would be much better, but there just ain't one, and the MIT guys don't like it, they want something really big and ugly - called "font server" ]. -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404