Displaying 1 result from an estimated 1 matches for "c_devcairo".
2017 Nov 28
1
Height not set properly in grDevices::jpeg() with type = "cairo"
...pixels, and is vertically very squashed.
Looking at grDevices::jpeg, it looks like the culprit is these lines:
g <- .geometry(width, height, units, res)
if (match.arg(type) == "cairo") {
antialias <- match(match.arg(antialias), aa.cairo)
invisible(.External(C_devCairo, filename, 3L, g$width,
height, pointsize, bg, res, antialias, quality, if
(nzchar(family)) family else "sans",
300))
}
g$width is used, but "height" is used instead of "g$height". I suspect
simply using "g$height" here would fix...