wch / extrafont

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

Add wrapper for windows fonts #10

Closed wch closed 12 years ago

wch commented 12 years ago

This is for bitmap output on Windows:

windowsFonts(Georgia=windowsFont("Georgia"))
ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point() +
    opts(title="Title text goes here") +
    opts(plot.title = theme_text(size = 16, family="Georgia", face="italic"))

Will probably need to scan the fonts files with ttf2pt1 to get names.

wch commented 12 years ago

Fixed in 785528644e42d74269e52a05b66d3cf838aecffe.