Skip to contents

List all fonts installed on your system

Usage

system_fonts()

Value

A data frame with a row for each font and various information in each column

Examples

# See all monospace fonts
fonts <- system_fonts()
fonts[fonts$monospace, ]
#> # A tibble: 26 × 10
#>    path          index name  family style weight width italic monospace variable
#>    <chr>         <int> <chr> <chr>  <chr> <ord>  <ord> <lgl>  <lgl>     <lgl>   
#>  1 /usr/share/f…     0 Cour… Couri… Bold… bold   norm… TRUE   TRUE      FALSE   
#>  2 /usr/share/f…     0 Nimb… Nimbu… Bold… bold   norm… TRUE   TRUE      FALSE   
#>  3 /usr/share/f…     0 Libe… Liber… Bold  bold   norm… FALSE  TRUE      FALSE   
#>  4 /usr/share/f…     0 Nimb… Nimbu… Regu… normal norm… FALSE  TRUE      FALSE   
#>  5 /usr/share/f…     0 Libe… Liber… Ital… normal norm… TRUE   TRUE      FALSE   
#>  6 /usr/share/f…     0 Cour… Couri… Regu… normal norm… FALSE  TRUE      FALSE   
#>  7 /usr/share/f…     0 Noto… Noto … Regu… normal norm… FALSE  TRUE      FALSE   
#>  8 /usr/share/f…     0 Deja… DejaV… Book  normal norm… FALSE  TRUE      FALSE   
#>  9 /usr/share/f…     0 Nimb… Nimbu… Ital… normal norm… TRUE   TRUE      FALSE   
#> 10 /usr/share/f…     0 Cour… Couri… Bold  bold   norm… FALSE  TRUE      FALSE   
#> # ℹ 16 more rows