Closed okumuralab closed 8 years ago
The underlying problem is
gdtools::str_metrics("正規分布")
#> width ascent descent
#> 0 0 0
I think because R has some fall back that it uses when the symbol is not available in the current font
@davidgohel any idea why this fails, but it works ok in R? The base R code is at https://github.com/wch/r-source/blob/master/src/library/grDevices/src/cairo/cairoFns.c#L524.
places Japanese string "正規分布" in wrong position. If the width cannot be determined, it'd be better to center the text like <text ... text-anchor="middle">正規分布</text>.
A related issue: cex=0.5 doesn't work.