The default_fonts() function

Let’s use the exibble dataset to create a simple, two-column gt table (keeping only the char and time columns). Attempting to modify the fonts used for the time column is much safer if default_fonts() is appended to the end of the font listing inside cell_text(). What will happen, since the "Comic Sansa" and "Menloa" fonts shouldn’t exist, is that we’ll get

exibble |>
  dplyr::select(char, time) |>
  gt() |>
  tab_style(
    style = cell_text(
      font = c("Comic Sansa", "Menloa", default_fonts())
    ),
    locations = cells_body(columns = time)
  )
char time
apricot 13:35
banana 14:40
coconut 15:45
durian 16:50
NA 17:55
fig NA
grapefruit 19:10
honeydew 20:20