[comp.text.tex] emtex questions: pxl/pk; s/r and q .tmf question

xiaofei@ACSU.BUFFALO.EDU (05/13/91)

Dear netters,
 
I have a couple questions I would appreciate answers:
 
1. in emTeX file:
% modes.mfj
%
def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\pxl%s]];
 
I wonder why pxl%s used instead of %r or %rdpi? considering the fact that
fonts created by mfjob will be in .pk format not in .pxl format.
 
2.
 
In set-tex.bat there is a line:
 
SET DVIDRVGRAPH=C:\EMTEX\DOC\GR$r
 
I understand that r means resolution, say 300 [dpi] and s = r * 5
my question is how the value is passed to r and to s?
and it seems that sometimes % used [ see modes.mfj: %s]
and sometimes $ is used see above line quoted. what is the grammar?
 
3. This question is not related to emTeX. I used Tom Rokicki's
   dvips to generate fonts which do not exist. But it seems to me
   that the .tfm must exist in order to generate fonts.
 
   My questions: Are the .tfm files machine dependent ? i.e. if I
   get a .tfm from unix and transfer it to msdos, will it work ?
 
   Suppose I need a cmr13.tfm how do I make/get it ?

mattes@azu.informatik.uni-stuttgart.de (Eberhard Mattes) (05/13/91)

xiaofei wrote:
> I have a couple questions I would appreciate answers:
>
> def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\pxl%s]];
>
> I wonder why pxl%s used instead of %r or %rdpi? considering the fact that
> fonts created by mfjob will be in .pk format not in .pxl format.

Here's a citation from modes.mfj of the 25-Sep-1990 release of emTeX:

def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\%rdpi]; tfmlog];

> In set-tex.bat there is a line:
>  
> SET DVIDRVGRAPH=C:\EMTEX\DOC\GR$r
>  
> I understand that r means resolution, say 300 [dpi] and s = r * 5
> my question is how the value is passed to r and to s?

See prtlj.bat, for instance. The value of the DVIDRVGRAPH environment variable
is used as argument for the /pg* option. See the manual for the /pg* option.

> and it seems that sometimes % used [ see modes.mfj: %s]
> and sometimes $ is used see above line quoted. what is the grammar?

All programs (in the 25-Sep-1990 release) use $r and $s.
All programs in the next release will use @r :-)

>   My questions: Are the .tfm files machine dependent ? i.e. if I
>   get a .tfm from unix and transfer it to msdos, will it work ?

They're machine independent.

>   Suppose I need a cmr13.tfm how do I make/get it ?
Fetch the Sauter fonts.


--
    Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)

info-tex@radel.com (INFO-TeX) (05/13/91)

> 1. in emTeX file:
> % modes.mfj
> %
> def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\pxl%s]];
>
> I wonder why pxl%s used instead of %r or %rdpi? considering the fact that
> fonts created by mfjob will be in .pk format not in .pxl format.
 
The 23Sep90 version of modes.mfj (the current one, I believe) says:
 
def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\%rdpi]; tfmlog];
 
Remember that, once upon a time, emTeX *did* use .pxl files.
 
> In set-tex.bat there is a line:
>
> SET DVIDRVGRAPH=C:\EMTEX\DOC\GR$r
>
> I understand that r means resolution, say 300 [dpi] and s = r * 5
> my question is how the value is passed to r and to s?
> and it seems that sometimes % used [ see modes.mfj: %s]
> and sometimes $ is used see above line quoted. what is the grammar?
 
The problem with using % in a batch file is that COMMAND.COM uses it as
a metacharacter.
 
> 3. This question is not related to emTeX. I used Tom Rokicki's
>    dvips to generate fonts which do not exist. But it seems to me
>    that the .tfm must exist in order to generate fonts.
 
No.  The whole point of running METAFONT is to create the .tfm *and* the
.gf files.  The input needed for METAFONT is generally a .mf file.
 
>    My questions: Are the .tfm files machine dependent ? i.e. if I
>    get a .tfm from unix and transfer it to msdos, will it work ?
 
They shouldn't be machine dependent, but unix and/or vms and/or etc.
transfers have been known to mess files up.  The easiest way to see
if it'll work is to do it and see what happens.
 
>
>    Suppose I need a cmr13.tfm how do I make/get it ?
 
All the bigger archives should have the parameterized version of CM
files, allowing you to make up fonts in arbitrary sizes (within reason).
 
-------------------------------------------------------------------------------
>From the mailing list account of:
 
--Jon Radel                        uucp:    {rutgers etc.}!uupsi!radel!jon
  P.O. Box 2276                    domain:  jon@radel.com        <-best
  Reston, VA  22090-0276                    radel!jon@uu.psi.com <-2nd choice
  U.S.A.

rjl@monu1.cc.monash.oz ( r lang) (05/15/91)

xiaofei@ACSU.BUFFALO.EDU:
> I have a couple questions I would appreciate answers:
> 1. in emTeX file:
> % modes.mfj
> %
> def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\pxl%s]];
>  
> I wonder why pxl%s used instead of %r or %rdpi? considering the fact that
> fonts created by mfjob will be in .pk format not in .pxl format.
Get a later version of emTeX.
This line now reads:

% modes.mfj
%
def lj=[mode=hplaser[300]; output=pk[c:\newfonts\pixel.lj\%rdpi]; tfmlog];
def tfmlog=[output=tfm[c:\newfonts\tfm] log[c:\newfonts\log];];

> SET DVIDRVGRAPH=C:\EMTEX\DOC\GR$r
>  
> I understand that r means resolution, say 300 [dpi] and s = r * 5
> my question is how the value is passed to r and to s?
The dvidrv family substitute the $r or $s with the desired size.

> and it seems that sometimes % used [ see modes.mfj: %s]
> and sometimes $ is used see above line quoted. what is the grammar?
It depends whether it is an environment variable (in which case a $
is used because % is used by DOS) or whether it is in the modes.mfj
file (in which case a % is used).

> 3. This question is not related to emTeX. I used Tom Rokicki's
>    dvips to generate fonts which do not exist. But it seems to me
>    that the .tfm must exist in order to generate fonts.
For your version of mfjob the answer is Yes.
For the new modes.mfj, make up your own maketfm.mfj file, and the tfm
file will be put in c:\newfonts\tfm.

>    My questions: Are the .tfm files machine dependent ? i.e. if I
>    get a .tfm from unix and transfer it to msdos, will it work ?
Yes. I have done this.
Remember that they are binary files.

>    Suppose I need a cmr13.tfm how do I make/get it ?
Why not use cmr12 magstep half?
If you really want cmr13.tfm, there are some files on ymir.claremont.edu
for making odd sized fonts.  I can't remember the exact location.

-- 
Russell Lang   Email: rjl@monu1.cc.monash.edu.au   Phone: (03) 565 3460
Department of Electrical and Computer Systems Engineering
Monash University, Australia