Karsten W.
Karsten W.

Reputation: 18500

Use Windows (TTF) font?

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?

Upvotes: 11

Views: 2621

Answers (1)

Karsten W.
Karsten W.

Reputation: 18500

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

windowsFonts(Calibri=windowsFont("Calibri"))
par(family="Calibri")
plot(rnorm(1:10))

Upvotes: 11

Related Questions