Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return directory invisibly from install_fa_fonts #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

debruine
Copy link

@debruine debruine commented Apr 9, 2022

If you return the font directory invisibly from install_fa_fonts(), it makes it easier to write code that makes a script reproducible on different machines. E.g.:

fontdir <- install_fa_fonts()
sysfonts::font_add(family = fa5_brand, regular = paste0(fontdir, "fa-brands-400.ttf"))
sysfonts::font_add(family = fa5_solid, regular = paste0(fontdir, "fa-solid-900.ttf"))
showtext::showtext_auto()

If you return the font directory invisibly from install_fa_fonts(), it makes it easier to write code that makes a script reproducible on different machines. E.g.:

```
fontdir <- install_fa_fonts()
sysfonts::font_add(family = fa5_brand, regular = paste0(fontdir, "fa-brands-400.ttf"))
sysfonts::font_add(family = fa5_solid, regular = paste0(fontdir, "fa-solid-900.ttf"))
showtext::showtext_auto()
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant