From dw|n@em|u@ @end|ng |rom comc@@t@net  Wed Jun 19 18:32:31 2019
From: dw|n@em|u@ @end|ng |rom comc@@t@net (David Winsemius)
Date: Wed, 19 Jun 2019 09:32:31 -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: <63168c7a-07b5-3ee5-281e-1274a8b43f0f@comcast.net>


On 6/19/19 8:19 AM, Spencer Graves 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?


I'm unable to reproduce. (I get very large fonts in all three viewing 
methods: Rstudio plot panel, ImageViewer and GIMP)

Ubuntu 18.04

R 3.15.2

Gimp 2.10.12


Looking at ?svg makes me think you should be looking at the Cairo Fonts 
section of ?X11.


Best;

David.

>
>
> ????? 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
David Winsemius