The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Download ‘Google’ fonts (via google-webfonts-helper) and generate CSS to use in rmarkdown documents and shiny applications. Some popular fonts are included and ready to use.
Install from CRAN with:
install.packages("gfonts")
You can install the development version from GitHub with:
# install.packages("remotes")
::install_github("dreamRs/gfonts") remotes
Get the ID of the desired font between 1474 available :
library(gfonts)
get_all_fonts()
Download the files necessary for its use and generate the appropriate CSS code :
setup_font(
id = "roboto",
output_dir = "path/to"
)
Use it in {shiny} or {rmarkdown} :
use_font("roboto", "www/css/roboto.css")
:point_right: See detailed example
Some fonts are included in the package and ready to use :
use_pkg_gfont("roboto")
:point_right: See all fonts available
googlefontR
provides helper functions to ease the use of Google Fonts with R.showtext
makes it easy to use various types of fonts (TrueType, OpenType, Type 1,
web fonts, etc.) in R graphs.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.