showtext icon indicating copy to clipboard operation
showtext copied to clipboard

Acrobat distortions for certain fonts

Open thomasjwood opened this issue 2 years ago • 1 comments

Great package, used every time I make a figure in R.

There's a weird bug where Acrobat distorts lower case "l"s. A minimal reproducible example:

library(showtext)
library(ggplot2)

font_add_google("Roboto")

p1 <- ggplot(mtcars) +
  geom_blank() +
  labs(
    title = "Lollipop"
  ) +
  theme_minimal(base_family = "Roboto")

showtext_auto()
ggsave("plot 1.pdf")

when I open this pdf in Sumatra, it renders fine

This is an image

Open the same file in Acrobat, and the lower case "l"s are weirdly rendered--blocky with inconsistent widths.

This is an image.

Is this a known bug?

thomasjwood avatar May 21 '22 23:05 thomasjwood

It also looks normal in my PDF viewer (PDF-XChange). So I suppose there is some rendering issue in Acrobat? You may also try a different version of Acrobat to see if the problem remains.

Untitled

yixuan avatar May 24 '22 00:05 yixuan