home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!ames!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!usenet!dagenais
- From: dagenais@vlsi.polymtl.ca (Michel Dagenais)
- Newsgroups: comp.lang.modula3
- Subject: Rotated text in Trestle
- Message-ID: <DAGENAIS.92Nov12090635@pollux.vlsi.polymtl.ca>
- Date: 12 Nov 92 14:06:35 GMT
- Sender: news@vlsi.polymtl.ca (USENET News System)
- Organization: Ecole Polytechnique de Montreal, Canada
- Lines: 34
-
-
- My understanding of Trestle/X11 is that one cannot paint rotated text
- (e.g. the word DRAFT over a page at a 35 degree angle). Moreover, this
- is simply not available as a primitive under X11. Here are the solutions i
- can think of:
-
- - read font bitmaps from the X11 server and perform bitmap rotation (not
- very nice).
-
- - ask directly to the X11R5 font server for rotated characters (i dont
- think that font servers support this?!).
-
- - have a postscript VBT which gives its screen area to a postscript
- interpreter like GNU Ghostscript (using DPS kit is not an option for me
- since i dont have Display PostScript).
-
- - use my own fonts defined as Bezier Curves, such as the fonts available
- with GNU fontutils (perhaps not too efficient if the VBT restarts from
- Bezier Curves at each redisplay).
-
- - open a pipe with GNU Ghostscript and have it generate the desired bitmaps
- on the fly when a new character/size/angle is encountered, then use these
- as Trestle pixmaps.
-
- Comments? Advices?
-
- --
- ---------------------------------------------------------------------
-
- Prof. Michel Dagenais dagenais@vlsi.polymtl.ca
- Dept of Electrical and Computer Eng.
- Ecole Polytechnique de Montreal tel: (514) 340-4029
-
- ---------------------------------------------------------------------
-