Skip to content

Commit

Permalink
-Suppress warnings from systemfonts package
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermorganwall committed Jan 4, 2025
1 parent 1bf17a5 commit 2489a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -1067,15 +1067,15 @@ text3d_mesh = function(label, position = c(0,0,0), text_height = 1, orientation
angle = c(0, 0, 0), pivot_point = c(0,0,0), order_rotation = c(1, 2, 3),
scale = c(1,1,1)) {
labelfile = tempfile(fileext = ".png")
text_image = rayimage::render_text_image(label,
text_image = suppressWarnings(rayimage::render_text_image(label,
font = font,
size = font_size,
color = font_color,
just = "left",
lineheight = font_lineheight,
background_color = background_color,
background_alpha = background_alpha,
filename = labelfile)
filename = labelfile))
height_val_raw = nrow(text_image)
width_val_raw = ncol(text_image)
ratio = text_height/height_val_raw
Expand Down

0 comments on commit 2489a61

Please sign in to comment.