add_web_fonts | R Documentation |
This function allows you to add web fonts after creation. The result is the
same as using the web_fonts
argument in svglite()
. Only SVGs created with
svglite can get web fonts added.
add_web_fonts(filename, web_fonts)
filename |
The svgfile(s) or |
web_fonts |
A list containing web fonts to use in the SVG. The fonts
will still need to be available locally on the computer running the code,
but viewers of the final SVG will not need the font if specified as a web
font. Web fonts can either be specified using |
Invisibly returns filename
. If any of elements of this were inline
SVGs then these have been modified to include the imports
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.