Skip to content

Commit

Permalink
added showtext and sysfonts to namespace to see if helps on systems o…
Browse files Browse the repository at this point in the history
…ther than windows
  • Loading branch information
chrismainey committed Jan 13, 2025
1 parent 0a70f2a commit e969639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export(theme_bsol_officer)
import(fs)
import(ggplot2)
import(officer)
import(showtext)
import(sysfonts)
import(usethis)
importFrom(ggplot2,discrete_scale)
importFrom(ggplot2,scale_color_gradientn)
Expand Down
3 changes: 1 addition & 2 deletions R/aaa_globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# global variables are defined in this file. the file has been named such that
# it will be executed before any other file
.onLoad <- function(libname, pkgname){

#sysfonts::font_paths()
sysfonts::font_paths()
sysfonts::font_add_google("Open Sans", "Open Sans")
sysfonts::font_add("Arial", "arial.ttf", "arialbd.ttf", "ariali.ttf", "arialbi.ttf")
sysfonts::font_add("Calibri", "calibri.ttf", "calibrib.ttf", "calibrii.ttf", "calibriz.ttf")
Expand Down
2 changes: 1 addition & 1 deletion R/bsol_theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#'
#' @export
#'
#' @import ggplot2
#' @import ggplot2 sysfonts showtext
#'
#' @examples
#' \dontrun{
Expand Down

0 comments on commit e969639

Please sign in to comment.