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

Could font_google() be a little more informative? #111

Open
gadenbuie opened this issue Jun 17, 2022 · 0 comments
Open

Could font_google() be a little more informative? #111

gadenbuie opened this issue Jun 17, 2022 · 0 comments

Comments

@gadenbuie
Copy link
Member

gadenbuie commented Jun 17, 2022

htmltools::renderTags(htmltools::tags$style(sass::font_google("Source Code", local = TRUE)))
#> Error in curl::curl_download(url, dest, handle = handle, quiet = FALSE, : HTTP error 400.

It took me a while to realize the problem was my spelling of "Source Code" which should have been "Source Code Pro".

The problem is that the above error is where you end up while trying to create a reprex. In the original context of an R Markdown yaml front matter, I was defining a few fonts and it wasn't even clear from the error that the fonts were the issue.

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

No branches or pull requests

1 participant