-
Notifications
You must be signed in to change notification settings - Fork 20
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 handling is strange? #51
Comments
Thank you for reporting, I will look into it. |
Can you attach the SVG file? |
Here's the dark theme with bumping the font size up: |
It seems like Safari can not find the "Inter" font on your computer. Have you tried restarting your computer? hgd(extra_css = "@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');") |
So doing: |
I'm going to restart VS Code et al. and see what that does. (sometimes I still get the blank canvas in httpgd randomly). |
If you have used the script of Kun Ren for using httpgd in vscode, make sure to add the extra_css argument to the hgd(..., extra_css = ...) call in your .Rprofile The blank screen issue is most likely this #50 bug in R itself which will be fixed in the upcoming R version. |
OK! I'll try that—will it make all plots render with Inter? I actually prefer Fira, just noticed this strange issue with this theme that uses Inter... |
The extra_css argument will just include an URL for Inter as a source in all plots, in case that font is used but not available. |
Thanks for the info. |
Thank you for for your reports, yes it does seem like sftheme is a bit unstable at the moment. |
No no, thank you for httpgd which is legit awesome and for being patient with me and my crappy issues! |
I originally reported this as an issue with the {sftheme}


amirmasoudabdol/sfthemes#3
This is occurring with
When using this theme that uses the Inter family of fonts, everything works well, except for a strange issue where ggplot legend title doesn't respect the font settings.
The wrong face is used for the bold legend title in VS Code WebView or in Chrome, as well as when saved to png. (Incidentally, in Mac OS Safari I don't get any of the text elements in Inter...)
Here's the output from ggsave():
I have the whole Inter family installed, MacOS Big Sur, M1, using {systemfonts} and {extrafont} if that helps.
The text was updated successfully, but these errors were encountered: