Re: Different font size rendering on different machines with pdf terminal

Helmut Haberzettl <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Hi, Alex,
Sorry for not responding earlier. The fontscale used is the same on both 
machines so that's not an issue. Anyway, thank you very much for your 
suggestion of using system("hostname"). This does indeed work nicely and 
provides an excellent workaround for this annoying issue. It still 
doesn't explain, though, why it is there at all. Puzzling.
Thanks again,
--Helmut

PS: This not only happens with the pdf terminal (which I understand 
shouldn't be used anymore), but also with pdfcairo.


On 10/26/2020 3:55 AM, Alexander Stangl wrote:
> Hey,
>
> there might be also the fontscale parameter. But not sure why this 
> should be different on different machines (if you use the same 
> initialisation)
> A work around could be to read out the computer name and depending on 
> this you set the terminal automatically to font size 6 or 12,
> e.g.:
> if(system("hostname") eq "PC1") { font = 12}
> else { font = 6}
> set terminal pdf font "Times-New-Roman,".font
>
> Best,
> Alex
>
> On Sat, 17 Oct 2020 at 17:11, Helmut Haberzettl <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hi,
>
>     I use gnuplot 5.2 (patchlevel 8) on various machines running
>     Windows 10 Pro.
>
>     When creating plots using the pdf terminal, the font sizes come out
>     differently on different machines. Specifically, while
>     set terminal pdf font "Times-New-Roman,12"
>     works as expected on one machine, I need to use
>     set terminal pdf font "Times-New-Roman,6"
>     on another machine to produce approximately (but not identically) the
>     same output on another machine. The plot files are identical
>     otherwise.
>
>     Are there some additional settings I'm unaware of that prevent
>     this from
>     happening? This is quite annoying because I frequently work on the
>     same
>     gnuplot file switching between machines (desktop, laptop) and any
>     help
>     in this regard would be greatly appreciated.
>
>     Thank you,
>     --Helmut Haberzettl
>
>
>     _______________________________________________
>     gnuplot-info mailing list
>     [email protected]
>     <mailto:[email protected]>
>     Membership management via:
>     https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>     <https://lists.sourceforge.net/lists/listinfo/gnuplot-info>
>


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.