home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / modula3 / 1029 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  1.7 KB

  1. 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
  2. From: dagenais@vlsi.polymtl.ca (Michel Dagenais)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Rotated text in Trestle
  5. Message-ID: <DAGENAIS.92Nov12090635@pollux.vlsi.polymtl.ca>
  6. Date: 12 Nov 92 14:06:35 GMT
  7. Sender: news@vlsi.polymtl.ca (USENET News System)
  8. Organization: Ecole Polytechnique de Montreal, Canada
  9. Lines: 34
  10.  
  11.  
  12. My understanding of Trestle/X11 is that one cannot paint rotated text
  13. (e.g. the word DRAFT over a page at a 35 degree angle). Moreover, this
  14. is simply not available as a primitive under X11. Here are the solutions i
  15. can think of:
  16.  
  17. - read font bitmaps from the X11 server and perform bitmap rotation (not
  18. very nice).
  19.  
  20. - ask directly to the X11R5 font server for rotated characters (i dont
  21. think that font servers support this?!).
  22.  
  23. - have a postscript VBT which gives its screen area to a postscript
  24. interpreter like GNU Ghostscript (using DPS kit is not an option for me
  25. since i dont have Display PostScript).
  26.  
  27. - use my own fonts defined as Bezier Curves, such as the fonts available
  28. with GNU fontutils (perhaps not too efficient if the VBT restarts from
  29. Bezier Curves at each redisplay).
  30.  
  31. - open a pipe with GNU Ghostscript and have it generate the desired bitmaps
  32. on the fly when a new character/size/angle is encountered, then use these 
  33. as Trestle pixmaps.
  34.  
  35. Comments? Advices?
  36.  
  37. --
  38. ---------------------------------------------------------------------
  39.  
  40. Prof. Michel Dagenais                dagenais@vlsi.polymtl.ca
  41. Dept of Electrical and Computer Eng.
  42. Ecole Polytechnique de Montreal            tel: (514) 340-4029
  43.  
  44. ---------------------------------------------------------------------
  45.