|
From: Ethan A M. <sf...@us...> - 2012-10-12 20:38:39
|
On Friday, October 12, 2012 11:27:20 am pl...@pi... wrote: > > - font-size="8pt" requests an 8 point font regardless of the > > display resolution or current scaling. That's what gnuplot does. > > In theory, if you view an SVG document in a viewer that allows > > you to rescale the figure, the font should display as the same > > size even after rescaling the plot. That is, if you shrink the > > figure the font does not shrink with it. > > Not what I am finding in practise. Right. Me neither. So theory and practice diverge once again. Nevertheless, writing the same SVG text element twice, once with font-size="10pt" and once with font-size="10" is quite informative about the substantial difference between the two descriptions. I think I will change the svg terminal to omit units from the font-size attribute, bringing it into line with what inkscape does. I am left rather confused about the level of device dependence, but at least on typical terminal screens (90-100dpi) this makes gnuplot's string width estimates much more accurate. If this causes problems for someone's use case (probably when embedding into a larger XML document) then we can consider how to make the font-size units a driver configuration option. Ethan |