Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Ghostscript, on a windows xp pc with an inkjet printer, how can I see a sample of the fonts available on my system? I need to know what they are called to invoke them, and it would be useful to know what substitutions are made.

share|improve this question

migrated from stackoverflow.com Jan 17 '12 at 12:55

This question came from our site for professional and enthusiast programmers.

1  
Those 4 folks who voted to move the question to stackoverflow clearly had no clue about this question being PostScript related, or had no clue about PostScript's nature as a Turing-complete programming language.... :-( – Kurt Pfeifle Jan 18 '12 at 18:41

(*) {==} 256 string /Font resourceforall will pipe a list of all the fonts available to stdout.

Instead of a simple {==} for the proc argument to resourceforall you could supply a more complex routine to print a page of output using the font. Eg:

%!
(*) {cvn findfont 20 scalefont setfont
10 10 moveto (ABCDEFGHIJKLMNOPQRSTUVWXYZ) show showpage}
256 string /Font resourceforall

Or even:

%!
(*) {dup cvn findfont 20 scalefont setfont
10 100 moveto show 
10 10 moveto (ABCDEFGHIJKLMNOPQRSTUVWXYZ) show showpage}
256 string /Font resourceforall

You can make it as pretty as you like, or until you get bored.....

share|improve this answer

It is there in the book I am using, to learn from and as a reference: "Postscript by Example" by Henry McGilpin and Mary Campione, Addison Wesley, 1992; ISBN 0-201-63228-4, Chapter 14 page 553, which has a dozen or so pages, 6 plus programs, on this very subject.

I got a download of the programs from the site and the file labelled "FONTS6.PS" is exactly what I want.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .