Need help to batch create pfm files via pf2afm

NoOp glgxg at sbcglobal.net
Fri Jul 29 21:35:11 UTC 2011


On 07/29/2011 02:18 PM, Avi Greenbury wrote:
> NoOp wrote:
> 
>> I've a large amount of licensed postscript fonts that I'd like to use
>> in OpenOffice/LO. I have both the .pfb and .pfm files in the same
>> folder and can generate the .afm file via:
>> 
>> $ pf2afm <fontfilename>
>> 
>> Unfortunately that will get old real fast with 400 font files. How
>> would I go about using pf2afm to batch convert all 400 in one go?
>> 
>> Note: Abiword only needs the .pfb, but OOo/LO require the .afm.
>> 
>> 
> 
> It's not clear quite which you'd like, but if it's for every file in
> the directory, then in a bash prompt in the directory in question:
> 
> for file in *; do pf2afm $file; done
...
Magic! Thanks Avi, I owe you one. :-)






More information about the ubuntu-users mailing list