From peter@|@ng|e|der @end|ng |rom gm@||@com  Wed Jun 19 18:29:55 2019
From: peter@|@ng|e|der @end|ng |rom gm@||@com (Peter Langfelder)
Date: Wed, 19 Jun 2019 09:29:55 -0700
Subject: [Rd] point size in svg
In-Reply-To: <2044e902-5440-678a-d845-d2d521ca428a@prodsyse.com>
References: <2044e902-5440-678a-d845-d2d521ca428a@prodsyse.com>
Message-ID: <CA+hbrhULE70+4dP24-ee6q29ViSuCjbkEq=_yD8QyZcs3XNn7Q@mail.gmail.com>

Unless this is something Apple-specific, the problem seems to be with
Gimp, not with R. On my system (linux), opening your examples with
either firefox or inkscape shows huge letters. At least firefox should
be able to open the svg on a Mac as well. BTW, Gimp on linux does not
open your cex-svg.svg at all, it says the plugin crashed.

Peter

On Wed, Jun 19, 2019 at 8:19 AM Spencer Graves
<spencer.graves at prodsyse.com> wrote:
>
> Hello, All:
>
>
>        I'm unable to control the font size in plots to svg.  Consider
> the following:
>
>
> svg('cex-svg.svg')
> cex. <- 5
> plot(1:2, cex.axis=cex.)
> text(1:2, 1:2, c('as', 'DF'),
>            cex=cex.)
> dev.off()
>
>
>        When I open this in Gimp 2.10.4, the font size is tiny.  I also
> tried:
>
>
> svg('cex-svg.svg', width=15, height=15, pointsize=24)
> cex. <- 5
> plot(1:2, cex.axis=cex.)
> text(1:2, 1:2, c('as', 'DF'),
>            cex=cex.)
> dev.off()
>
>
>        What do I do to control the font size in svg?
>
>
>        Thanks,
>        Spencer Graves
>
>
> sessionInfo()
> R version 3.6.0 (2019-04-26)
> Platform: x86_64-apple-darwin15.6.0 (64-bit)
> Running under: macOS Mojave 10.14.5
>
> Matrix products: default
> BLAS:
> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
> LAPACK:
> /Library/Frameworks/R.framework/Versions/3.6/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
> [6] methods   base
>
> other attached packages:
> [1] Ecdat_0.3-2 Ecfun_0.2-1
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] point size in svg
Peter Langfelder