Skip to content

Return directory invisibly from install_fa_fonts#87

Open
debruine wants to merge 1 commit intohrbrmstr:masterfrom
debruine:patch-1
Open

Return directory invisibly from install_fa_fonts#87
debruine wants to merge 1 commit intohrbrmstr:masterfrom
debruine:patch-1

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