R/utils.R
get_font_css.Rd
Get Google Font CSS for embedding in SVG
get_font_css(font_name = "Jost", weights = c(400, 500, 600, 700))
Name of the Google Font
Vector of font weights to include
Character string with CSS @font-face rules
get_font_css("Jost") #> [1] "@import url(\"https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap\");"