s-u / Cairo

R graphics device using cairo graphics library for creating high-quality output
12 stars 10 forks source link

'family' argument of plot/main/... ignored #17

Closed flying-sheep closed 2 years ago

flying-sheep commented 8 years ago
CairoPDF()
plot(sqrt, family = 'Fira Code')
dev.off()

I expect that plot to have the font I specified. The same applies for calls to main/xlab/…

s-u commented 2 years ago

Font family was ignored in the FreeType back-end. This has now been added both for plain FreeType and Harfbuzz rendering in 7a936f7.

s-u commented 2 years ago

Should be now supported in Cairo 1.6-0 with Harfbuzz back-end.