Skip to content

using Arial font

2 messages · Daithi Murray, David Winsemius

#
On Jul 3, 2011, at 5:13 AM, Daithi Murray wrote:

            
First thing I did was check to see if Arial was already in my list of  
psotscriptFonts:

names(postscriptFonts())  # Nope not there

Then I used the Mac Font Book.app to see if it was on my system. It  
is. (And it's just an ordinary sans serif font, nothing special.)   
Then I right-clicked and asked to show it in the Finder. It is in / 
Macintosh HD/Library/Fonts/Microsoft/ and is named Arial.ttf rather  
than arial.ttf and the names of the italic, bold, and bold-italic  
faces have spaces and are also capitalized.

(Now,  I cannot be sure that you will find such a font on your system.  
I have installed several MS products and it seems possible that this  
font is there only because of that. And I do not know what the  
licensing provisions are.)

I then checked using Terminal.app to see if the utility program you  
were advised to use was on my system:

david-winsemiuss-mac-pro:~ davidwinsemius$ locate ttf2afm
#  It seems to be present as a result of having installed the Tex  
package since all of the directories where it is found are descendants  
of /usr/local/texlive
This is implicitly telling you to do these actions from a system  
window such as you get with Terminal.app

I wish I could report that my efforts at following these instructions  
worked but I get the creation of zero MB files in my ~/ directory
My advice. Use an available sans-serif font. The default sans serif  
font on the R Mac combo is Helvetica but you can ensure its use with....

 > postscript(file="try.ps", horizontal=F,
+       onefile=F,
+       width=4, height=4,
+       family="Helvetica",
+         pointsize=12)
 >   hist(rnorm(100))
 >   dev.off()
null device
           1

If the people at the other end want to use font substitution then that  
should be easily accomplished. There should be enough information in  
the ps file for their software to figure out that you used a 12-point  
sans-serif font.

(This is really a question better posed on the R-Mac-SIG mailing list  
to which I am cross-posting and to which follow-ups should be  
directed ....  without following up to rhelp.)
David Winsemius, MD
West Hartford, CT