Nothing
##---------------------------------------------------------------------------##
## ##
## onload.R ##
## Part of the geomtextpath R package ##
## ##
## Copyright (C) 2021 - 2022 by Allan Cameron & Teun van den Brand ##
## ##
## Licensed under the MIT license - see https://mit-license.org ##
## or the LICENSE file in the project root directory ##
## ##
##---------------------------------------------------------------------------##
.onLoad <- function(libname, pkgname) {
sans <- system.file("font", "Open_Sans_Regular.ttf", package = "geomtextpath")
mono <- system.file("font", "Web_Hebrew_Monospace_Regular.ttf",
package = "geomtextpath")
sans_type1 <- grDevices::postscriptFonts()$sans
grDevices::postscriptFonts(fallback = sans_type1)
grDevices::pdfFonts(fallback = sans_type1)
# Provide fallback fonts in case unable to detect system fonts
if (nrow(systemfonts::system_fonts()) == 0) {
systemfonts::register_font("fallback", sans)
systemfonts::register_font("mono", mono)
} else {
systemfonts::register_font("fallback", systemfonts::font_info("")$path[1])
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.