Post #3623363
2026-06-25 15:46 UTC
What's the preferred way these days to include a font in an R package (as part of a ggplot theme)? Examples? Can we use variable fonts?
@hrbrmstr @thomasp85
#RStats
Replies (2)
-
@nrennie@fosstodon.org 2026-06-25 21:38
@noamross@ecoevo.social I'm not sure if this is the best way, but I tend to put the font files in the inst folder and use showtext to load it when library() is called so a user never really needs to deal with the fonts themselves. Example: https://github.com/nrennie/RSSthemes/blob/main/R/zzz.R
-
@hrbrmstr@mastodon.social 2026-06-26 00:41
@noamross@ecoevo.social