
On Fri, 2016-02-19 at 22:39 +0100, Tobias Ellinghaus wrote:
Am Freitag, 19. Februar 2016, 15:49:59 schrieb Tavmjong Bah:
The interline spacing is given by the 'line-height' property. Line height is the distance from one baseline to the next baseline. The Inkscape GUI currently allows setting this value only based on a percentage of the 'font-size'.
That is fine, however, the Inkscape GUI doesn't mention line height but line spacing. So it's actually off by 1. The look of the default "1" setting should be achieved by setting the GUI value to "0". Either that, or the tooltip should be changed to mention line height instead of spacing.
I've changed this to "Spacing between baselines". That should be a bit clearer.
So, besides the wrong tooltip that caused much of my confusion there is also the status bar which shows the font name and size of selected objects. However, it
- uses the default display unit and not the font unit and
- doesn't take the document's view box scaling (as described by you
above) into account.
Attached you will find a patch to fix both. I am not sure if it's the right way to do it, it feels as if I mixed old C and new C++ API, but I couldn't find a pure C++ way to handle it.
I've applied the patch. Thanks!
With a non-uniform scaling, the font size reported using the patch is kind of meaningless but that is how the font size is being reported in the Text tool tool bar.
Tav