Skip to content

Commit

Permalink
See if dev systemfonts fixes vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 14, 2025
1 parent 2f83b12 commit b2a56d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ LinkingTo:
Imports:
cli,
glue,
grDevices,
grid,
jpeg,
png,
rlang (>= 1.1.0),
systemfonts (>= 1.1.0),
systemfonts (>= 1.1.0.9000),
textshaping (>= 0.4.1.9000),
utils,
vctrs
Expand All @@ -43,4 +44,5 @@ Config/Needs/website: tidyverse/tidytemplate
VignetteBuilder: knitr
Config/testthat/edition: 3
Remotes:
r-lib/textshaping
r-lib/textshaping,
r-lib/systemfonts
2 changes: 1 addition & 1 deletion R/grob.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ marquee_grob <- function(text, style = classic_style(), ignore_html = TRUE,

#' @export
makeContext.marquee_grob <- function(x) {
if (grepl("quartz", names(dev.cur())) && utils::packageVersion("grDevices") < package_version("4.4.2")) {
if (grepl("quartz", names(grDevices::dev.cur())) && utils::packageVersion("grDevices") < package_version("4.4.2")) {
cli::cli_abort(c(
"The graphics device in use contains a bug that crashes R, when used with modern text features",
i = "Consider using the graphics devices provided by the ragg package instead"
Expand Down

0 comments on commit b2a56d3

Please sign in to comment.