Skip to content

Commit

Permalink
remove fontface, not font (if it should exist) when updating gpar
Browse files Browse the repository at this point in the history
  • Loading branch information
netique committed Apr 21, 2022
1 parent ef5f1aa commit bad2607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/drawing-context.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ set_style <- function(drawing_context, style = NULL) {
update_gpar <- function(gp, gp_new) {
names_new <- names(gp_new)
names_old <- names(gp)
gp[c(intersect(names_old, names_new), "font")] <- NULL
gp_new["font"] <- NULL
gp[c(intersect(names_old, names_new), "fontface")] <- NULL
gp_new["fontface"] <- NULL
do.call(gpar, c(gp, gp_new))
}

Expand Down

0 comments on commit bad2607

Please sign in to comment.