[R] postscriptFonts

Roland Kaiser roland.kaiser at sbg.ac.at
Tue Mar 7 10:07:28 CET 2006


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

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




More information about the R-help mailing list