[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fontinst / afm2tfm question





Hello there


[First, please excuse if you get multiple versions of this mail, but
i'm getting a little desperate. Second "newbie mode on" please :-)]


For some time now i read about using PS fonts in LaTeX. So, i
converted the fonts coming w/ CorelDraw (copyrighted version) to the
KarlBerry naming scheme based on bitstream.map file (e.g. from CTAN). 

I tried to use fontinst (both on Linux and Solaris  AFAICT the
fontinst version is 1.801 ) to convert the .afm to the necessary .fd , 
.tfm and .vf files. All what fontinst does is create 4 .fd files (for
8r, OT1, T1 and TS1 enconding) that only contain  \ProvidesFile{<filename>} 
and a \DeclareFontFamily{<encoding>}{<font family>}{} . Nothing more.
No other files, whatsoever. (Please see the detailed description at
the end of this mail). 


Failing to use fontinst that i made a simple script to

.afm -> (afm2tmf -T 8r.enc -v ) ->  .vpl and `raw` .tfm (?!?!) -> (vptovf ) ->
-> .vf and .tfm 


Problem is though that i dont have the .fd files. And creating them by 
hand  (asumming i figure out how) for ~700 fonts is ...well.."challenging". 


So, my questions:

1) How can i fix fontinst/what is the problem
2) How can i create corresponding .fd files without fontinst.



With many thanks, and sorry for the very long P.S.

Florian

(please reply directly to me, i'm not on the list)

P.S.: Detailed description of using fontinst

1) Renamed the fonts from Corel to KB naming scheme based on bitstream.map
2) Trying to convert the following family:

......
baob8r    Incised901BT-Bold             
baob8rc   Incised901BT-BoldCondensed    
baoc8r    Incised901BT-Black            
baoh8rx   Incised901BT-Nord             
baohi8rx  Incised901BT-NordItalic       
baol8r    Incised901BT-Light            
baop8r    Incised901BT-Compact          
baor8r    Incised901BT-Roman            
baori8r   Incised901BT-Italic           
......


3) I put the .afm and .pfb in a directory:

shell-prompt> ls bao*
 baob8r.afm   baob8rc.pfb  baoh8rx.afm   baohi8rx.pfb  baop8r.afm  baor8r.pfb
 baob8r.pfb   baoc8r.afm   baoh8rx.pfb   baol8r.afm    baop8r.pfb  baori8r.afm
 baob8rc.afm  baoc8r.pfb   baohi8rx.afm  baol8r.pfb    baor8r.afm  baori8r.pfb


4) In this directory i run 

shell-prompt> latex `kpsewhich fontinst.sty`
 This is TeX, Version 3.14159 (Web2C 7.3.1)
 (/usr/share/texmf/tex/fontinst/base/fontinst.sty
 LaTeX2e <1998/12/01> patch level 1
 Babel <v3.6x> and hyphenation patterns for american, french, german, ngerman, i
 talian, nohyphenation, loaded.
 LaTeX Warning: You have requested package `',
                but the package provides `fontinst'.
 (/usr/share/texmf/tex/latex/graphics/trig.sty
 LaTeX Warning: You have requested package `',
                but the package provides `trig'.
 )
 No file fontinst.rc.
 )

*\latinfamily{bao}{} \bye

INFO> parse family <bao><>
INFO> to make LaTeX font shape <bao,m,n,> seek baor8r.mtx
INFO> to make LaTeX font shape <bao,m,sc,> seek baorc8r.mtx
INFO> to make LaTeX font shape <bao,m,sl,> seek baoro8r.mtx
INFO> to make LaTeX font shape <bao,m,it,> seek baori8r.mtx
INFO> to make LaTeX font shape <bao,m,n,c> seek baor8rn.mtx
INFO> to make LaTeX font shape <bao,m,sc,c> seek baorc8rn.mtx
INFO> to make LaTeX font shape <bao,m,sl,c> seek baoro8rn.mtx
INFO> to make LaTeX font shape <bao,m,it,c> seek baori8rn.mtx
INFO> to make LaTeX font shape <bao,m,n,> seek baok8r.mtx
INFO> to make LaTeX font shape <bao,m,sc,> seek baokc8r.mtx
INFO> to make LaTeX font shape <bao,m,sl,> seek baoko8r.mtx
INFO> to make LaTeX font shape <bao,m,it,> seek baoki8r.mtx
INFO> to make LaTeX font shape <bao,m,n,c> seek baok8rn.mtx
INFO> to make LaTeX font shape <bao,m,sc,c> seek baokc8rn.mtx
INFO> to make LaTeX font shape <bao,m,sl,c> seek baoko8rn.mtx
INFO> to make LaTeX font shape <bao,m,it,c> seek baoki8rn.mtx
INFO> to make LaTeX font shape <bao,b,n,> seek baob8r.mtx
INFO> to make LaTeX font shape <bao,b,sc,> seek baobc8r.mtx
INFO> to make LaTeX font shape <bao,b,sl,> seek baobo8r.mtx
INFO> to make LaTeX font shape <bao,b,it,> seek baobi8r.mtx
INFO> to make LaTeX font shape <bao,b,n,c> seek baob8rn.mtx
INFO> to make LaTeX font shape <bao,b,sc,c> seek baobc8rn.mtx
INFO> to make LaTeX font shape <bao,b,sl,c> seek baobo8rn.mtx
INFO> to make LaTeX font shape <bao,b,it,c> seek baobi8rn.mtx
INFO> to make LaTeX font shape <bao,sb,n,> seek baos8r.mtx
INFO> to make LaTeX font shape <bao,sb,sc,> seek baosc8r.mtx
INFO> to make LaTeX font shape <bao,sb,sl,> seek baoso8r.mtx
INFO> to make LaTeX font shape <bao,sb,it,> seek baosi8r.mtx
INFO> to make LaTeX font shape <bao,sb,n,c> seek baos8rn.mtx
INFO> to make LaTeX font shape <bao,sb,sc,c> seek baosc8rn.mtx
INFO> to make LaTeX font shape <bao,sb,sl,c> seek baoso8rn.mtx
INFO> to make LaTeX font shape <bao,sb,it,c> seek baosi8rn.mtx
INFO> to make LaTeX font shape <bao,db,n,> seek baod8r.mtx
INFO> to make LaTeX font shape <bao,db,sc,> seek baodc8r.mtx
INFO> to make LaTeX font shape <bao,db,sl,> seek baodo8r.mtx
INFO> to make LaTeX font shape <bao,db,it,> seek baodi8r.mtx
INFO> to make LaTeX font shape <bao,db,n,c> seek baod8rn.mtx
INFO> to make LaTeX font shape <bao,db,sc,c> seek baodc8rn.mtx
INFO> to make LaTeX font shape <bao,db,sl,c> seek baodo8rn.mtx
INFO> to make LaTeX font shape <bao,db,it,c> seek baodi8rn.mtx
INFO> to make LaTeX font shape <bao,mb,n,> seek baom8r.mtx
INFO> to make LaTeX font shape <bao,mb,sc,> seek baomc8r.mtx
INFO> to make LaTeX font shape <bao,mb,sl,> seek baomo8r.mtx
INFO> to make LaTeX font shape <bao,mb,it,> seek baomi8r.mtx
INFO> to make LaTeX font shape <bao,mb,n,c> seek baom8rn.mtx
INFO> to make LaTeX font shape <bao,mb,sc,c> seek baomc8rn.mtx
INFO> to make LaTeX font shape <bao,mb,sl,c> seek baomo8rn.mtx
INFO> to make LaTeX font shape <bao,mb,it,c> seek baomi8rn.mtx
INFO> to make LaTeX font shape <bao,eb,n,> seek baoc8r.mtx
INFO> to make LaTeX font shape <bao,eb,sc,> seek baocc8r.mtx
INFO> to make LaTeX font shape <bao,eb,sl,> seek baoco8r.mtx
INFO> to make LaTeX font shape <bao,eb,it,> seek baoci8r.mtx
INFO> to make LaTeX font shape <bao,eb,n,c> seek baoc8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sc,c> seek baocc8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sl,c> seek baoco8rn.mtx
INFO> to make LaTeX font shape <bao,eb,it,c> seek baoci8rn.mtx
INFO> to make LaTeX font shape <bao,eb,n,> seek baoh8r.mtx
INFO> to make LaTeX font shape <bao,eb,sc,> seek baohc8r.mtx
INFO> to make LaTeX font shape <bao,eb,sl,> seek baoho8r.mtx
INFO> to make LaTeX font shape <bao,eb,it,> seek baohi8r.mtx
INFO> to make LaTeX font shape <bao,eb,n,c> seek baoh8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sc,c> seek baohc8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sl,c> seek baoho8rn.mtx
INFO> to make LaTeX font shape <bao,eb,it,c> seek baohi8rn.mtx
INFO> to make LaTeX font shape <bao,eb,n,> seek baox8r.mtx
INFO> to make LaTeX font shape <bao,eb,sc,> seek baoxc8r.mtx
INFO> to make LaTeX font shape <bao,eb,sl,> seek baoxo8r.mtx
INFO> to make LaTeX font shape <bao,eb,it,> seek baoxi8r.mtx
INFO> to make LaTeX font shape <bao,eb,n,c> seek baox8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sc,c> seek baoxc8rn.mtx
INFO> to make LaTeX font shape <bao,eb,sl,c> seek baoxo8rn.mtx
INFO> to make LaTeX font shape <bao,eb,it,c> seek baoxi8rn.mtx
INFO> to make LaTeX font shape <bao,ub,n,> seek baou8r.mtx
INFO> to make LaTeX font shape <bao,ub,sc,> seek baouc8r.mtx
INFO> to make LaTeX font shape <bao,ub,sl,> seek baouo8r.mtx
INFO> to make LaTeX font shape <bao,ub,it,> seek baoui8r.mtx
INFO> to make LaTeX font shape <bao,ub,n,c> seek baou8rn.mtx
INFO> to make LaTeX font shape <bao,ub,sc,c> seek baouc8rn.mtx
INFO> to make LaTeX font shape <bao,ub,sl,c> seek baouo8rn.mtx
INFO> to make LaTeX font shape <bao,ub,it,c> seek baoui8rn.mtx
INFO> to make LaTeX font shape <bao,l,n,> seek baol8r.mtx
INFO> to make LaTeX font shape <bao,l,sc,> seek baolc8r.mtx
INFO> to make LaTeX font shape <bao,l,sl,> seek baolo8r.mtx
INFO> to make LaTeX font shape <bao,l,it,> seek baoli8r.mtx
INFO> to make LaTeX font shape <bao,l,n,c> seek baol8rn.mtx
INFO> to make LaTeX font shape <bao,l,sc,c> seek baolc8rn.mtx
INFO> to make LaTeX font shape <bao,l,sl,c> seek baolo8rn.mtx
INFO> to make LaTeX font shape <bao,l,it,c> seek baoli8rn.mtx
Font definitions written on 8rbao.fd.
Font definitions written on ot1bao.fd.
Font definitions written on t1bao.fd.
Font definitions written on ts1bao.fd.
No pages of output.
Transcript written on fontinst.log.



..So i end up w/ only these last for font decription files and the
fontinst.log. Any ideas ? Someone suggested that it is a "dos-ascii"
.afm file but is not AFAICT. Anyway, i include at the end of this
mail (sorry for make it so long) the .afm for the roman series (baor8r.afm)

There is even a  'fontinst' shell script:

#!/bin/sh
tex -progname=fontinst \&tex ${1+"$@"}

But i cannot find any documentation on its use, whatsoever. 

I also found some tools at ftp://ftp.tex.ac.uk/tex-archive/fonts/psfonts/tools/ 
but they are also...hmm.."cryptic" to me  ;-)



---- baor8r.afm ---

baor8r.afm