I need to use a custom font, namely \"Archer\", with ggplot2 in R. Archer is an otf typeface installed on my system (Mac OSX Yosemite).
This script (found here: Modifyin
You can try the showtext package, which directly works on OTF fonts.
library(showtext)
font.add("Archer", "Archer.otf")
showtext.auto()
library(ggplot2)
qplot(1:10)+theme(text=element_text(family="Archer"))
Please replace "Archer.otf" by the real filename of your Archer font in the system.
Using showtext
does not require embedding the fonts.