wilkelab / ggtext

Improved text rendering support for ggplot2
https://wilkelab.org/ggtext/
GNU General Public License v2.0
655 stars 37 forks source link

Using diaeresis/tréma/umlaut in title causing unintended extra whitespace #49

Closed msberends closed 4 years ago

msberends commented 4 years ago

Thanks for this package!

I notice that when using a diaeresis (e.g. ë), the title gets additional whitespace after the word that contains it:

library(ggplot2)
library(ggtext)

ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  labs(title = "Test with ë diaeresis") +
  theme(plot.title = element_markdown())

image

clauswilke commented 4 years ago

See #19.

msberends commented 4 years ago

Alright, but my problems are gone if I don’t use element_markdown(). I’ll continue on issue #19 for this.

Thanks!