Wrong behaviour of text flowed into a combined shape
Migrated from: https://bugs.launchpad.net/inkscape/+bug/168975
Steps to reproduce:
- open Inkscape
- create two shapes, one below the other
- combine them (Ctrl++)
- create a text
- Select text and combined shape and apply Text -> Flow into shape
Alternatively, open text_in_combined_path.svg, where the aforementioned steps have been performed for flowroot and SVG2 flowed text.
- Move the bottom shape (node tool -> rubberband-select its nodes), to increase/decrease the relative distance between the two shapes.
What happened?
Only if the two shapes are very close to each other, the text continues in the second shape.
What should have happened?
The text should continue in the second shape, regardless of the distance.
According to OP on Lauchpad, from an email by Richard:
Yes, this is weird and (after a careful reading of the spec) incorrect.
the text runs straddle both regions so the entire document is read top-to-bottom (this bit is correct). The layout code is attempting to enforce the rule that anything after the end of a region gets cut off, but it's seeing the gap between the two regions as the end and simply stopping rather than shifting by line-advance and trying again.
(Probably true for SVG2 texts as well)
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (6b4d57f, 2020-04-01)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info:
- confirmed in SVN head 2/2/08
- Win 7 64-bit Inkscape 0.91 r13725