Line spacing differs between 0.91 an 0.92b4

Bug #1652006 reported by James Sandford on 2016-12-22
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

The line spacing for multi-line text boxes in files saved in 0.91 stable is interpreted differently when opened in 0.92 beta 4. The line spacing is rendered larger when in 0.92 beta 4. I will try and provide more information when I have time later today. I need to double check if the spacing parameter itself is identical in the two versions (a possible render issue) or if it differs (a possible file parsing issue).

James Sandford (j616s) wrote :

One 0.91 the spacing is set to 1.25 "times the font height (pt)" or something along those lines. When loading the file, 125% which I would imagine to be a percentage of the parent. Though I'm not entirely sure what would be classed as the parent height here. The tool-tip now says the measurement is between the baselines which I would interpret to mean sizes less than 100% would result in touching lines (or even higher where there are descenders). This doesn't seem to be the case. Whatever it relates to, this figure loaded from the file does not result in the same rendered document.

Oddly, the closest unit seems to be pc (pica? 1/6inches) which is an absolute unit of printed size. This is odd because the tool-tip in 0.91 seemed to imply the unit was relational towards the height of the font.

The tool-tip in 0.92 says "spacing between baselines (times font size)" which may be somewhat misleading as many of the units are now absolute and not relative in their measurement.

I may be misunderstanding the tool-tips and units in each version. I have a small amount of knowledge of typography but I'm no typographer. But as a user, I would hope files created in older versions of Inkscape would render the identically in newer versions. That said, I know that isn't always possible.

James Sandford (j616s) wrote :

Just an update. On most fonts the import as 125% seems to behave correctly. It just seems to be a font called "Battambang" (I'm not sure which package I got it from) that is behaving strangely. My guess is its metadata for its vertical positions of the font components are wrong but the way 0.91 interpreted them made it behave in a way that looked sensible. Sorry about this. How odd...

Would you like to explore this more or just close the bug?

su_v (suv-lp) wrote :

Please attach test cases (Inkscape SVG files created with Inkscape 0.91 or older, not edited/resaved in 0.92pre) to allow further investigation for the original reported (known) issue: «The line spacing for multi-line text boxes in files saved in 0.91 stable is interpreted differently when opened in 0.92 beta 4.»

Test cases (legacy Inkscape documents) will also help to further test the extension proposed in bug #1652340.

If specific fonts are needed to reproduce, please also provide any details as available (license, download link).

Changed in inkscape:
status: New → Incomplete
su_v (suv-lp) wrote :

Closing due to lack of test case(s) - known issues with baseline spacing of text in legacy files in Inkscape 0.92.0 r15299 are tracked in bug #1655483.

Issues with baseline spacing of text in legacy files (last edited with <= 0.91) which persist in latest Inkscape 0.92.1 should be filed separately (for new reports, please provide the original files which have not yet been resaved with Inkscape 0.92.x).

Changed in inkscape:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers