gdtools (version 0.1.6)

set_dummy_conf: Set and unset a minimalistic Fontconfig configuration

Description

set_dummy_conf() sets the FONTCONFIG_FILE environment variable with a minimalistic configuration file. This configuration uses a folder with only one font (Bitstream Vera Sans) to which every font patterns are matched. This is mostly useful to reduce cache-building time on testing platforms running Windows (e.g. on Appveyor or on CRAN's win-builder service).

Usage

set_dummy_conf()

unset_dummy_conf()

Arguments

Examples

Run this code
# NOT RUN {
if( require("fontquiver") ){
on_appveyor <- function() {
  identical(Sys.getenv("APPVEYOR"), "True")
}

# Use minimal fonts.conf to speed up fc-cache
if (on_appveyor()) {
  set_dummy_conf()
}

unset_dummy_conf()
}
# }

Run the code above in your browser using DataCamp Workspace