wch / extrafont

Tools for using fonts in R graphics
315 stars 48 forks source link

Make error when installing Rttf2pt1 freetype2 (experimental support for OTF/TTC) #40

Open craikmarshall opened 10 years ago

craikmarshall commented 10 years ago

I tried to use the experimental versions of Rttf2pt1 and extrafont for OTF/TTC support (after http://blog.revolutionanalytics.com/2012/09/how-to-use-your-favorite-fonts-in-r-charts.html):

install_github("Rttf2pt1", "wch", "freetype2") install_github("extrafont", "wch", "freetype")

The second package installs fine, but the first one returns:

Error: Command failed (1)
make: invalid option -- g
make: invalid option -- O
make: invalid option -- 2
make: invalid option -- a
make: invalid option -- c

make: *** [all] Error 2
ERROR: compilation failed for package 'Rttf2pt1'

Also, running font_import() now returns No FontName. Skipping. for every font, even for the standard ones it would normally find (running install.packages("extrafont") doesn't solve the problem)

Running R 3.0.2 on OS X 10.8.5

craikmarshall commented 9 years ago

After further inspection I found that the file ./src/freetype2/builds/detect.mk couldn't autodetect the platform and thus defaulted to Platform = Ansi (instead of Mac for me). In this file I changed all default behaviour from "ansi" to "unix", but although this changed the platform to "unix", it still gave the error from my previous message (above)