R: Set and unset a minimalistic Fontconfig configuration

set_dummy_conf {gdtools} | R Documentation

## 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()

### Examples

    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()
    }

[Package gdtools version 0.1.6 Index]