s-u / Cairo

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

Support ligatures #18

Closed flying-sheep closed 2 years ago

flying-sheep commented 8 years ago
CairoFonts(bold = 'Fira Code:style=Regular')
CairoPDF()
plot(sqrt, main = 'foo <- bar != baz')
dev.off()

I expect to see Fira Code’s ligatures, but all text is separate

s-u commented 2 years ago

For the same reasons as in #23 this is not supported by cairographics. See #23 for a new branch that supports complex font shaping via Harfbuzz which also includes ligatures. I'll close this and track the rest in #23.

library(Cairo)
CairoFonts(bold = 'Fira Code:style=Regular')
Cairo(dpi=100)
plot(sqrt, main = 'foo <- bar != baz')
dev.off()

plot