Closed lionel- closed 8 years ago
Can you try running this on both platforms:
gdtools::str_metrics("disp")
#> width ascent descent
#> 22.013672 8.636719 2.501953
In the Debian:testing docker I have:
gdtools::str_metrics("disp")
## width ascent descent
## 24.82031 9.12500 2.50000
And on OSX:
gdtools::str_metrics("disp")
## width ascent descent
## 22.01 8.64 2.50
Oops, with the full decimal places, the OSX metrics are exactly the same as yours.
Can you file on https://github.com/davidgohel/gdtools and see if David has any ideas?
Almost ready...
You can test it with the following R commands
devtools::install_github('davidgohel/fontquiver')
devtools::install_github('lionel-/fontHeavy')
devtools::install_github('davidgohel/gdtools')
devtools::install_github('davidgohel/svglite')
library(svglite)
htmlSVG(hist(rnorm(100)), font_description = font_desc_dejavu$new())
Using bitstream vera as default font is not ideal as this font does not offer serif italic neither serif bolditalic. I would prefer a mix of fonts:
The following:
produces plots with different spacing on Linux and OSX.
issue-svg.zip