Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-family value with white spaces isn't quoted #136

Closed
Gedevan-Aleksizde opened this issue Jun 5, 2021 · 0 comments · Fixed by #143
Closed

font-family value with white spaces isn't quoted #136

Gedevan-Aleksizde opened this issue Jun 5, 2021 · 0 comments · Fixed by #143

Comments

@Gedevan-Aleksizde
Copy link

When I specify a font family name with white spaces (e.g., YuMincho +36p Kana, one of the standard Japanese font in MacOS ), font-family value isn't quoted in the exported svg file. So It sometimes isn't properly recognized when browsed or converted by rsvg::rsvg_pdf

For example:

par(family = "YuMincho 36p Kana")
plot(0, xlab = "", ylab = "", axes = F, main = "游明朝 +36ポかな")
dev.copy(svglite::svglite, "font.svg")
dev.off()
rsvg::rsvg_pdf("font.svg", "font-rsvg.pdf")

In this case, rsvg::rsvg_pdf embeds "Hiragino Mincho ProN" insteadly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant