Well, yes, you do need an afm file, as it says.

On Tue, 7 Mar 2006, Roland Kaiser wrote:

Hi,
I have problems creating a new mapping for a postscript font.
I want to use the font-family <TheSans> from Luc(as) de Groot.

The font only holds a .PFM file but no .afm file.
The. PFM looks similary to those in grDevices\afm

It does not to me: it looks like postscript code.  You need a program
called pfm2afm or the ghostscript script pf2afm to do the conversion.

When i use postcriptFont(), i get an error!
ivalid font metric information in PostScript font specification

(I copied the original .PFM as .afm into the grDevices\afm folder. I use
the Windows version)

?½ %!PS-AdobeFont-1.0: TheSans-5Regular 1.0
%%CreationDate: Thu Jun 13 22:27:21 2002
%%VMusage: 120000 150000
11 dict begin
/FontInfo 14 dict dup begin
/version (1.0) readonly def
/Notice (Copr. Luc as de Groot 1994) readonly def
/FullName (TheSans 5 Regular) readonly def
/FamilyName (TheSans) readonly def
/ItalicAngle 0 def
/isFixedPitch false def
/UnderlinePosition -150 def
/UnderlineThickness 20 def
/Weight (Regular) readonly def
end readonly def
/FontName /TheSans-5Regular def
/Encoding StandardEncoding def
/PaintType 0 def
/FontType 1 def
/FontMatrix [ 0.00100 0 0 0.00100 0 0 ] readonly def
/UniqueID 4001163 def
/FontBBox {-62 -433 1758 1170} readonly def
currentdict end
currentfile
...

thanx for answers

roland

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to