home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6159 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.7 KB  |  55 lines

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!yale.edu!jvnc.net!rutgers!cmcl2!psinntp!psinntp!svc!news
  2. From: moose@svcdudes.com
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: PSsetfont
  5. Message-ID: <1992Sep14.180035.8033@svcdudes.com>
  6. Date: 14 Sep 92 18:00:35 GMT
  7. References: <1992Sep11.160744.2376@axion.bt.co.uk>
  8. Sender: news@svcdudes.com
  9. Reply-To: moose@svcdudes.com
  10. Distribution: na
  11. Organization: Software Ventures, Inc.
  12. Lines: 41
  13.  
  14. In article <1992Sep11.160744.2376@axion.bt.co.uk> agray@axion.bt.co.uk (Andy  
  15. Gray) writes:
  16. > Having a slight problem with PSsetfont and I can't find the answer on my  
  17. system,
  18. > can anyone help?
  19.  
  20. I'm going to assume you know about the Font object but don't want to use it for  
  21. some reason.  Otherwise, ignore the rest.
  22.  
  23. > but would like to code it inline as
  24. >     PSfindfont("Times-Roman");
  25. >     PSscalefont(12.0);
  26. >     PSsetfont(???);
  27.  
  28. I would recommend using PSselectfont instead as it is less postscript to send  
  29. to the Window Server.
  30.  
  31. > The last line is the one that causes me grief. I'm supposed to send it a
  32. > reference, any clues?
  33.  
  34. After quickly going through the disassembly, we see that if we pass in 8, the  
  35. following postscript is emitted
  36.  
  37. 8 execuserobject setfont
  38.  
  39. If 9 is passed in
  40.  
  41. 9 execuserobject setfont
  42.  
  43. is emitted.  So, I would say that you pass in the user object that your font  
  44. is.  Since neither PSfindfont, nor PSscalefont create the user object, you  
  45. probably have to do that manually.  Overall, quite a painful process when you  
  46. can use either PSselectfont, or just make your own wrap.
  47.  
  48. --
  49. Michael Rutman            |    moose@svcdudes.com
  50. Cubist                |    makes me a NeXT programmer
  51. Software Ventures        |    maker of MicroPhone Pro
  52. #include <std.disclaimer>    |    really offensive political statement
  53.