-
Notifications
You must be signed in to change notification settings - Fork 7
switch to Arial svg font #125
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
Conversation
|
Deploy preview for cmu-delphi-main ready! Built with commit a26a8b1 |
tildechris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good on desktop and mobile. Question - how does one configure which font the svgs use? Will it just default to Arial in the future or do blog authors have to specify?
|
I haven't found a way to proper configure/specify with font to use, R seems to use https://www.rdocumentation.org/packages/gdtools/versions/0.1.1/topics/match_family to determine which font family to use depending on availability. The |
|
So in this case, you've made sure that Arial is available and when you regenerated the svgs, |
|
The problem is that there are several layers on top of each other, blogdown -> R -> svglite device and I don't know a way to specify options for the lowest one. It seems like Arial is the default sans font (see also https://svglite.r-lib.org/articles/fonts.html). It wasn't used before since in a docker environment there are no fonts at all installed by default. The Anaconda environment ensures that we have the Arial font now. |
tildechris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the background. LGTM.
closes #110
by using the
mscorefontsanaconda packagebefore (on my machine)
after: (on my machine)