yixuan / showtext

Using Fonts More Easily in R Graphs
http://cran.r-project.org/web/packages/showtext/index.html
478 stars 38 forks source link

Fonts turn to be blurry in MacOS - Xquartz when enable showtext #45

Open mingsu opened 4 years ago

mingsu commented 4 years ago
require(showtext)
showtext_auto(enable = F)
plot(1)
Screen Shot 2020-09-24 at 10 28 43 AM
showtext_auto(enable = T)
plot(1)
Screen Shot 2020-09-24 at 10 29 35 AM

When I setup the dpi, font size changes

showtext_auto(enable = T)
showtext_opts(dpi = 220)
plot(1)
Screen Shot 2020-09-24 at 10 35 36 AM
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.5

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] showtext_0.9   showtextdb_3.0 sysfonts_0.8.1

loaded via a namespace (and not attached):
[1] compiler_4.0.2
>