R/hfont.R

Defines functions hfont

Documented in hfont

#' hfont
#'
#' This function loads hammond fonts
#'
#' @param df
#'
#' @examples
#' x = hfont()
#'
#' @export
hfont = function(libname = find.package("hammond"), pkgname = "hammond"){
    require("extrafont")
    require(grDevices)
    font_import(paths = system.file("extdata", "graphik", package = "hammond"),
                pattern = "Graphik", prompt = FALSE)
    loadfonts("pdf", quiet = T)
    loadfonts("postscript", quiet = T)
    try(loadfonts("win", quiet = T))
}
david-hammond/hammond documentation built on Sept. 10, 2021, 5:38 a.m.