Skip to contents

Internal helper. Uses the system woff2_decompress tool to convert a .woff2 file into a .ttf file. Documented with roxytypes annotations for clarity.

Usage

woff2_to_ttf(font_file, overwrite = FALSE, remove_old = TRUE, quiet = "fail")

Arguments

font_file

(character(1)) Path to the .woff2 file to convert.

overwrite

(logical(1)) If TRUE, overwrite an existing .ttf conversion.

remove_old

(logical(1)) If TRUE, remove the original .woff2 file after conversion try.

quiet

(full" | "success" | "fail" | "none) If "full", capture all output and suppress console messages; if "success", only show success messages; if "fail", only show error messages; if "none", show all messages (default: "none").

Value

(character(1)) Invisibly returns the path to the .ttf file on success.