The google_font() function

Use exibble to create a gt table of eight rows, replace missing values with em dashes. For text in the time column, we use the Google font "IBM Plex Mono" and set up the default_fonts() as fallbacks (just in case the webfont is not accessible).

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

Use sp500 to create a small gt table, using fmt_currency() to provide a dollar sign for the first row of monetary values. Then, set a larger font size for the table and use the "Merriweather" font using the google_font() function (with two font fallbacks: "Cochin" and the catchall "Serif" group).

sp500 |>
  dplyr::slice(1:10) |>
  dplyr::select(-volume, -adj_close) |>
  gt() |>
  fmt_currency(
    columns = 2:5,
    rows = 1,
    currency = "USD",
    use_seps = FALSE
  ) |>
  tab_options(table.font.size = px(20)) |>
  opt_table_font(
    font = list(
      google_font(name = "Merriweather"),
      "Cochin", "Serif"
    )
  )
date open high low close
2015-12-31 $2060.59 $2062.54 $2043.62 $2043.94
2015-12-30 2077.34 2077.34 2061.97 2063.36
2015-12-29 2060.54 2081.56 2060.54 2078.36
2015-12-28 2057.77 2057.77 2044.20 2056.50
2015-12-24 2063.52 2067.36 2058.73 2060.99
2015-12-23 2042.20 2064.73 2042.20 2064.29
2015-12-22 2023.15 2042.74 2020.49 2038.97
2015-12-21 2010.27 2022.90 2005.93 2021.15
2015-12-18 2040.81 2040.81 2005.33 2005.55
2015-12-17 2073.76 2076.37 2041.66 2041.89