The function will search the system for availability of any of the Africa
CDC fonts in heirarchical order starting with Acumin Pro, then
Brandon Text, then Calibri, and then finally Arial. If none of these
are found in the system, the function will return Noto Sans by default or
the user can set which font to use as alternative by specifying alt
.
Usage
acdc_fonts
set_acdc_font(alt = paleta_fonts$paleta_noto)
An object of class list
of length 4.
Arguments
- alt
A character value for font family to use if all of the Africa
CDC fonts are not available in the system.
Value
A character value for font family to use as Africa CDC font.
Examples
acdc_fonts
#> $acdc_acumin
#> [1] "Acumin Pro"
#>
#> $acdc_brandon
#> [1] "Brandon Text"
#>
#> $acdc_calibri
#> [1] "Calibri"
#>
#> $acdc_arial
#> [1] "Arial"
#>
set_acdc_font()
#> [1] "Noto Sans"