-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad behavior of text function. #157
Comments
When I replace the whole
The following message disappear.
And I also get the correct result. And again, the #155 could give correct output and don't hang again. I think the measurement of character metrics is not necessary when using tikzDevice, since |
well, set all ascent, descent, and width to zero is not a good solution to #155, however,
It's nonsense to give ascent and descent of I think it's better to use the ascent, descent, and width of the whole string, if possible. In the R function
if we remove the condition to Now, the problem is how to assign the ascent, descent, and width of whole string to MetricInfo in the C code. |
Graphics devices such as tikzDevice register a set of callbacks, which are then called by R's graphics engine. We don't control which callbacks are called when. I agree that measuring the metrics character by character doesn't make sense for Closing in favor of #160. |
In the following example
The output in the R console is:
If I replace the
text(..., "abcd!")
withmtext("abcd!",...)
, it just give:What is the difference? And, why is the string in
text
measured character by character, instead of string as a whole?The text was updated successfully, but these errors were encountered: