On Sun, 2016-06-05 at 23:46 +0100, C R wrote:
Is this related to why flowed text line spacing sometimes freaks out
when loaded?
It's been really messing me up lately.
For an example, load this file:
https://www.dropbox.com/s/3f43lyrr494m8cm/testfile.svg?dl=0
and try to change the line spacing in the text box.
Works okay in 0.91 stable and not at all in current trunk.
It's definitely not doc scaling that is causing this problem.
What is more likely is that Inkscape now respects the 'strut' value in
the block element per CSS. In plain English, that means that the
minimum spacing between lines is defined by the <text> or <flowtext>
element that wraps all the text. The minimum spacing is the value of
the 'line-height' property times the value of the 'font-size' property.
There was a comment in the code saying that this was not implemented in
Inkscape because none of the browsers were doing it this way... but
that was a long time ago. All the browsers now implement this correctly
according to CSS (at least for HTML since SVG 1.1 doesn't have multi-
line text).
CSS line spacing is definitely a mess (and the CSS group seems to
recognize it). But having a strut value is useful as it means being
able to define a well know spacing between the lines (see:
http://tavmj
ong.free.fr/blog/?p=1632 ).
The problem for Inkscape is how can the user know what is the value of
the 'strut' and how can they change it? We definitely need a better
interface. I would consider this a blocker.
And we need to be able to control how CSS properties are written into
the SVG file; at the moment writing a property into a block element
causes the property to be written into all the children elements which
is not really desirable in many cases.
Tav