11

Is it possible to use a TTF font in R?

Is the cairo package intended for this task? How would a minimal example look like?

zx8754
  • 52,746
  • 12
  • 114
  • 209
Karsten W.
  • 17,826
  • 11
  • 69
  • 103

1 Answers1

11

Here is an example adapted from http://www.statmethods.net/advgraphs/parameters.html:

windowsFonts(Calibri=windowsFont("Calibri"))
par(family="Calibri")
plot(rnorm(1:10))
assylias
  • 321,522
  • 82
  • 660
  • 783
Karsten W.
  • 17,826
  • 11
  • 69
  • 103