phao172@emx.utexas.edu (Randy M. Roberts) (11/07/90)
I downloaded post1.3 and post13fonts from "new xanth" the other day.
I copied Helvetica from the post13fonts into PSFonts:
I edited s:init.ps to use PSFonts: just as the comments say to do.
When I tried post1.3 as:
post s:init.ps screen
and went into interactive mode, and typed
/Helvetica findfont
96 scalefont
72 72 moveto
(ABC) show
I got three big dots, i.e. the dumb default font.
After hacking into s:init.ps I got it to tell me that it couldn't open
the font file (which it correctly prefixed with PSFonts:).
I then noticed that the command "fontfile" was undefined, so I added this
to the s:init.ps file:
/fontfile { (r) file } def
which is used in (the file name is on the top of the stack)
/loadfont
{ ...
{ fontfile } stopped
{pop (can't open file\n) print }
{cvx exec}
ifelse
...
} bind put
Now when I type
/Helvetica findfont
It does a lot more disk access (presumably reading psfonts:helvetica)
and displays the following error:
post: error: invalidfont, command --definefont--
The only place I have found "definefont" is in psfonts:helvetica,
so what's going wrong?
What is the correct definition of "fontfile"?
BTW, none of the other fonts in the distribution work either, reporting
the same, or similar error.
advTHANKSance, /* stollen from another netter */
Randy
nad@tegra.COM (Nancy Durgin) (11/08/90)
In article <39277@ut-emx.uucp> phao172@emx.utexas.edu (Randy M. Roberts) writes: >I downloaded post1.3 and post13fonts from "new xanth" the other day. >I copied Helvetica from the post13fonts into PSFonts: >I edited s:init.ps to use PSFonts: just as the comments say to do. > >When I tried post1.3 as: > > post s:init.ps screen > >and went into interactive mode, and typed > > /Helvetica findfont > 96 scalefont > 72 72 moveto > (ABC) show > >I got three big dots, i.e. the dumb default font. > Well, I'm not familiar with how Post1.3 works, but the above code needs a 'setfont' before it is going to do what you want. i.e.: /Helvetica findfont 96 scalefont setfont 72 72 moveto (ABC) show If it doesn't find Helvetica at the point when it executes findfont, it should print some kind of message the gist of which is "font not found, using default font". If you don't get this message, then it found the font (Assuming Post1.3 handles this the way Adobe does). Hope this helps... Nancy -- ============================================================================== Nancy Durgin | (Usual disclaimers | Tegra-Varityper, Inc. tegra!nad@uunet.com | apply...) | Billerica, Massachusetts ==============================================================================
phao172@emx.utexas.edu (Randy M. Roberts) (11/08/90)
In article <1703@robbie.tegra.COM> you write: |In article <39277@ut-emx.uucp> phao172@emx.utexas.edu (Randy M. Roberts) writes: |>I downloaded post1.3 and post13fonts from "new xanth" the other day. |>I copied Helvetica from the post13fonts into PSFonts: |>I edited s:init.ps to use PSFonts: just as the comments say to do. |> |>When I tried post1.3 as: |> |> post s:init.ps screen |> |>and went into interactive mode, and typed |> |> /Helvetica findfont |> 96 scalefont |> 72 72 moveto |> (ABC) show |> |>I got three big dots, i.e. the dumb default font. |> | |Well, I'm not familiar with how Post1.3 works, but the above code needs |a 'setfont' before it is going to do what you want. i.e.: | | /Helvetica findfont | 96 scalefont setfont | 72 72 moveto | (ABC) show Yes. I included the "setfont" in my example, I just forgot to type it in to my message. Sorry | |If it doesn't find Helvetica at the point when it executes findfont, |it should print some kind of message the gist of which is "font not found, |using default font". If you don't get this message, then it found the |font (Assuming Post1.3 handles this the way Adobe does). It never gets past the "findfont". | |Hope this helps... | | Nancy | |-- |============================================================================== |Nancy Durgin | (Usual disclaimers | Tegra-Varityper, Inc. |tegra!nad@uunet.com | apply...) | Billerica, Massachusetts |============================================================================== Regards, Randy -- Randy M. Roberts phao172@emx.utexas.edu
gwalborn@unix.cis.pitt.edu (Gary D Walborn) (11/10/90)
It might help if you would post the section of your init.ps that deals with 'findfont'. Perhaps there is a typo (or simple mistake) in there that is causing your problems. Gary Walborn <gwalborn@unix.cis.pitt.edu>
telam@pyrps5.pyramid.com (Thomas Elam) (11/15/90)
In article <39356@ut-emx.uucp>, phao172@emx.utexas.edu (Randy M. Roberts) writes: |> In article <1703@robbie.tegra.COM> you write: |> |In article <39277@ut-emx.uucp> phao172@emx.utexas.edu (Randy M. Roberts) writes: |> |>I downloaded post1.3 and post13fonts from "new xanth" the other day. |> |>I copied Helvetica from the post13fonts into PSFonts: |> |>I edited s:init.ps to use PSFonts: just as the comments say to do. Nancy's posting helped me get post to start working for me with multiple fonts and without awful kludges. (Thanks, Nancy.) I know next to nothing about Postscript programming, so I'd had troubles with getting Post 1.2 to work. I haven't read the Post 1.3 documentation yet, and don't know how to get s:init.ps to use PSFonts: easily. I just assign PSFonts: using the AmigaDOS Assign command before I run post. This is my only real advice. The rest of this posting just corroborates that what Nancy said seems to work for version 1.2. |> |>When I tried post1.3 as: |> |> |> |> post s:init.ps screen |> |> |> |>and went into interactive mode, and typed |> |> |> |> /Helvetica findfont |> |> 96 scalefont |> |> 72 72 moveto |> |> (ABC) show I don't have the Helvetica font, but Canaith, ClassicaItalic, etc. work fine for me. I entered the commands (is that the right term?) as Nancy said (adding the "setfont" line) and as shown below. |> |>I got three big dots, i.e. the dumb default font. |> |> |> | |> |Well, I'm not familiar with how Post1.3 works, but the above code needs |> |a 'setfont' before it is going to do what you want. i.e.: |> | |> | /Helvetica findfont |> | 96 scalefont setfont |> | 72 72 moveto |> | (ABC) show |> |> Yes. I included the "setfont" in my example, I just forgot to |> type it in to my message. Sorry |> |> | |> |If it doesn't find Helvetica at the point when it executes findfont, |> |it should print some kind of message the gist of which is "font not found, |> |using default font". If you don't get this message, then it found the |> |font (Assuming Post1.3 handles this the way Adobe does). |> |> It never gets past the "findfont". What happens? Can you still type in commands? (I can't help--I'm just curious.) |> |Hope this helps... |> | |> | Nancy |> | |> |-- |> |============================================================================== |> |Nancy Durgin | (Usual disclaimers | Tegra-Varityper, Inc. |> |tegra!nad@uunet.com | apply...) | Billerica, Massachusetts |> |============================================================================== |> |> Regards, |> Randy |> -- |> Randy M. Roberts |> phao172@emx.utexas.edu