R/zzz.R

Defines functions .onUnload .onLoad

.onLoad = function(libname, pkgname) {
    library.dynam("sysfonts", pkgname, libname)
    add_default_font_paths()
    add_default_fonts()
}

.onUnload = function(libpath) {
    clean_fonts()
    library.dynam.unload("sysfonts", libpath)
}
yixuan/sysfonts documentation built on May 14, 2020, 5:50 a.m.