Skip to contents

Get data frame of font information for a font file

Usage

get_font_df(font_file = "RubFlama-Regular.ttf")

Arguments

font_file

Character, name of the font file (case insensitive)

Value

Data frame obtained by systemfonts::system_fonts with one row

Examples

get_font_df("RUB Scala TZ.ttf")
#> Warning:  Font file "RUB Scala TZ.ttf" could not be found
#>  Using fallback font "DejaVuSans" instead
#> This warning is displayed once per session.
#> # A tibble: 1 × 9
#>   path                    index name  family style weight width italic monospace
#>   <chr>                   <int> <chr> <chr>  <chr> <ord>  <ord> <lgl>  <lgl>    
#> 1 /usr/share/fonts/truet…     0 Deja… DejaV… Book  normal norm… FALSE  FALSE