R/fonts.R

Defines functions typr_fonts

Documented in typr_fonts

#' List Available Typst Fonts
#'
#' @returns a character vector of font names
#' @export
#'
#' @examplesIf has_any_typst()
#' typr_fonts()
typr_fonts <- function() {
  out <- typr_run(args = 'fonts')$stdout
  strsplit(out, '\n')[[1]]
}

Try the typr package in your browser

Any scripts or data that you put into this service are public.

typr documentation built on June 8, 2025, 10:36 a.m.