home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / software / 3068 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.9 KB  |  76 lines

  1. Newsgroups: comp.sys.next.software
  2. Path: sparky!uunet!lkba!lkb
  3. From: uunet!lkba!lkb (Larry Blische)
  4. Subject: Re: Wanted: App to preview fonts without installing them.
  5. Message-ID: <1992Dec14.051425.5780@lkba.uucp>
  6. Sender: lkb@lkba.uucp (Lawrence Keith Blische)
  7. Reply-To: uunet!lkba!lkb
  8. Organization: LKB Associates, Inc.
  9. References: <1992Dec13.114133.18500@mic.ucla.edu>
  10. Date: Mon, 14 Dec 1992 05:14:25 GMT
  11. Lines: 63
  12.  
  13. In article <1992Dec13.114133.18500@mic.ucla.edu> iwelch@agsm.ucla.edu (Ivo  
  14. Welch) writes:
  15. > [1] Is there an  application that would  allow me to preview fonts   
  16. without
  17. > having to install them first?
  18. >     <further>
  19.  
  20. Cut the folowing out and paste it into a new Yap document window, follow the  
  21. instructions:
  22.  
  23. %!PS-Adobe-3.0 EPSF-3.0
  24. %%BoundingBox: 0 0 612 792
  25. %
  26. % replace the ? with the font name in the following line,
  27. % ex: (Helvetica-Oblique)
  28. (?)
  29. %
  30. % if it's not an installed font, paste the complete ascii font file here
  31. %
  32.  
  33. /Font exch def
  34. /LM    0    def
  35. /RM    480    def
  36. /Hinc    30    def
  37. /verticals      { newpath LM Hinc RM { 0 moveto 0 TM rlineto } for closepath  
  38. stroke } def
  39.  
  40. /BM    0    def
  41. /TM    720    def
  42. /Vinc    45    def
  43. /horizontals    { newpath BM Vinc TM { 0 exch moveto RM 0 rlineto } for  
  44. closepath stroke } def
  45. /baselines    { newpath BM Vinc Hinc sub add Vinc TM { 0 exch moveto RM 0  
  46. rlineto } for closepath .5 setgray stroke 0 setgray } def
  47. /center        { dup stringwidth pop 2 div neg 0 rmoveto  } def
  48.  
  49. Font findfont 30 scalefont setfont
  50. 306 742 moveto Font center show
  51. 0 setlinewidth
  52. 66 18 translate
  53. verticals
  54. horizontals
  55. baselines
  56. /char    1 string def
  57. /i    0 def
  58. /inc_i    { /i i 1 add def } def
  59. 0 Vinc 16 mul 30 sub translate
  60. 0 1 15 {
  61.     0 1 15 {
  62.         0 0 moveto char 0 i put char show inc_i Hinc 0 translate pop 
  63.  
  64.         } for Hinc -16 mul Vinc neg translate pop
  65.     } for
  66. showpage
  67.  
  68. -- 
  69. Larry Blische              uunet!lkba!lkb
  70. LKB Associates, Inc.
  71. 3118 Dunglow Road
  72. Dundalk, Maryland 21222-5304 USA
  73.