Skip to content

Commit 630ec1e

Browse files
committed
replace Gill Sans MT with Cabin
1 parent 3798fa7 commit 630ec1e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

R/font_dataedu.R

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @importFrom showtext showtext_auto
77
#' @importFrom proto proto
88

9-
gillproto <- proto::proto(expr={
9+
cabinproto <- proto::proto(expr={
1010
get_path <- function() {
1111
font_folder <- "fonts"
1212
system.file(font_folder, package = "dataedu")
@@ -28,13 +28,13 @@ gillproto <- proto::proto(expr={
2828
}
2929
})
3030

31-
#' Load Gill Sans MT Font
31+
#' Load Cabin Font
3232
#'
3333
#'
34-
#' @title load.gillsansmt
35-
#' @param font Gill Sans MT
34+
#' @title load.cabin
35+
#' @param font Cabin
3636
#' @return NULL
3737
#' @export
38-
load.gillsansmt <- function(font = "GillSansMT.ttf") {
39-
gillproto$load_font(font = font)
38+
load.cabin <- function(font = "Cabin.ttf") {
39+
cabinproto$load_font(font = font)
4040
}

R/zzz.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.onAttach <- function(libname, pkgname) {
2-
load.gillsansmt()
2+
load.cabin()
33
}

inst/fonts/Cabin.ttf

91.7 KB
Binary file not shown.

inst/fonts/GillSansMT.TTF

-65.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)