Displaying 1 result from an estimated 1 matches for "ttf2asm".
Did you mean:
ttf2afm
2007 Aug 09
0
Mac OSX fonts in R plots
...m posting this for feedback and and
archiving. I'd be interested in any caveats about the brittleness of
the technique.
Thanks.
F
-----
1. Find font
system font path: /Library/Fonts/
2. Extract ttf (if necessary) with fondu [http://fondu.sourceforge.net/]
eg, fondu -force Optima.dfont
3. ttf2asm for each ttf file, stripping the Copyright and warning
3. copy files to
RHOME/library/grDevices/afm
(usually,
/Library/Frameworks/R.framework/Versions/2.5/Resources/library/grDevices/afm
)
4. R code to use the font; eg,
newfont= Type1Font("Optima",c("OptimaRegular.afm",&quo...