> tikz('Fig2-a.tex', standAlone = TRUE, width=4, height=4)
> plot(1:10, type = "n", xlab = "", ylab = "模式")
Measuring dimensions of: 2
Measuring dimensions of: 4
Measuring dimensions of: 6
Measuring dimensions of: 8
Measuring dimensions of: 10
Measuring dimensions of: 模式
Warning message:
In getMetricsFromLatex(TeXMetrics, verbose = verbose) :
XeLaTeX was unable to calculate metrics for some characters:
Missing character: There is no 模 in font ecrm1000!
Missing character: There is no 式 in font ecrm1000!
> text(5,2, "江汉平原")
Measuring dimensions of: 江汉平原
Measuring dimensions of: \char27743
Measuring dimensions of: \char27721
Measuring dimensions of: \char24179
Measuring dimensions of: \char21407
At here, R hanged forever, with full CPU utilization. I check the temp file tikzStringWidthCalc.tex and tikzStringWidthCalc.log, and confirmed that the correct size is obtained.
Here is a mini example:
R output the following message:
At here, R hanged forever, with full CPU utilization. I check the temp file
tikzStringWidthCalc.tex
andtikzStringWidthCalc.log
, and confirmed that the correct size is obtained.I don't know what's the problem.