dreamRs / gfonts

:abc: Offline Google Fonts for rmarkdown and shiny
https://dreamrs.github.io/gfonts/
112 stars 4 forks source link

Hello world example 404s #2

Closed cpsievert closed 4 years ago

cpsievert commented 4 years ago

Great idea for a package! I really like to use it and recommend it, but unfortunately both download_font() and setup_font() seem to always 404?

library(gfonts)
setup_font(
  id = "roboto",
  output_dir = "path/to"
)
Error: Not Found (HTTP 404)
pvictor commented 4 years ago

Thanks! Oups a last minute change bug... The error occurs when no variants are supplied, that's fixed. Otherwise you have to explicitly specify variant(s) to download :

download_font(
  id = "roboto", 
  variants = c("regular", "italic"),
  output_dir = "path/to"
)

Victor

cpsievert commented 4 years ago

Wonderful, thank you, and thanks for all your other great contributions to the shiny ecosystem!