Difference between revisions of "SVG2 Text Bugs"

From Inkscape Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
SVG 2 files should be rendered correctly.
 
SVG 2 files should be rendered correctly.
  
 +
===== Shape Inside =====
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-001.svg text-shape-inside-001.svg] PASS
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-002.svg text-shape-inside-002.svg] PASS
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-complex-001.svg text-shape-complex-001.svg] PASS
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-complex-002.svg text-shape-complex-002.svg] PASS
 +
 +
===== Inline Size =====
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-001.svg text-inline-001.svg] <span style="color:red">FAIL</span> (Does not handle 'text-anchor', uses 'text-align' instead.)
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-002.svg text-inline-002.svg] <span style="color:red">FAIL</span> (Does not handle 'text-anchor', uses 'text-align' instead.)
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-003.svg text-inline-003.svg] <span style="color:red">FAIL</span> (Does not handle 'text-anchor', uses 'text-align' instead.)
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-005.svg text-inline-005.svg] Pass
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-006.svg text-inline-006.svg] Pass
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-007.svg text-inline-007.svg] Pass
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-011.svg text-inline-011.svg] <span style="color:red">FAIL</span> (Does not handle '%' values for 'x' and 'y'.)
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-inline-101.svg text-inline-101.svg] <span style="color:red">FAIL</span> (Does not use 'x' and 'y' from &lt;tspan&gt;.)
 +
 +
===== Various Multiline =====
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-multiline.svg text-multiline.svg] NA
  
 
==== Old Inkscape Files ====
 
==== Old Inkscape Files ====
  
Old Inkscape files should be properly converted to the new format.
+
Old Inkscape files should be properly converted to the new format (after any edit).
  
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-001-svg1.1.svg text-shape-inside-001-svg1.1.svg] <span style="color:red">FAIL</span>
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-002-svg1.1.svg text-shape-inside-002-svg1.1.svg] <span style="color:red">FAIL</span>
  
 
==== SVG 1.1 Fallback ====
 
==== SVG 1.1 Fallback ====
Line 31: Line 51:
 
Bugs:
 
Bugs:
 
* Fallback uses 'text-align', should use 'text-anchor'.
 
* Fallback uses 'text-align', should use 'text-anchor'.
 +
* 'dx' values incorrect (for 'text-align:justify').
 +
 +
Output files:
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-001-out.svg text-shape-inside-001-out.svg] <span style="color:red">FAIL</span>
 +
* [http://tavmjong.free.fr/SVG/SVG2_TESTS/text/text-shape-inside-002-out.svg text-shape-inside-002-out.svg] <span style="color:red">FAIL</span>
  
 
=== Editing Tests ===
 
=== Editing Tests ===
  
 +
To do...
  
 
== Known Bugs ==
 
== Known Bugs ==

Latest revision as of 09:18, 19 September 2017

This page is to keep track of issues with Inkscape's SVG 2 Text implemention.

Introduction

Alexandru Roman implemented support for SVG 2 Text as his GSoC project in 2017. His code can be found on GitLab. The main advantage of updating to SVG 2 Text is the ability to provide a natural SVG 1.1 fallback. SVG 2 Text has a few additional benefits like the ability to add a margin to a shape and the ability to exclude fill regions based on other shapes.

Testing

Rendering Tests

SVG 2 Files

SVG 2 files should be rendered correctly.

Shape Inside
Inline Size
Various Multiline

Old Inkscape Files

Old Inkscape files should be properly converted to the new format (after any edit).

SVG 1.1 Fallback

Inkscape SVG 2 files should render correctly in browsers using SVG 1.1 fallback.

To test:

  1. Open SVG 2 rendering test file.
  2. Nudge to force fallback to be created then nudge back to original position.
  3. Save with new file name.
  4. Open with web browser.

Bugs:

  • Fallback uses 'text-align', should use 'text-anchor'.
  • 'dx' values incorrect (for 'text-align:justify').

Output files:

Editing Tests

To do...

Known Bugs

GUI Improvements

Improvements to Inkscape's GUI.

Filling Shapes

  1. If a shape is selected in Text Tool mode, it should automatically be used for text in a shape.
  2. If multiple shapes are selected, they should be filled in order (of selection?, of z-order?).
  3. Dragging the mouse cursor creates a box to be filled. As this is implemented using the 'inline-size' property, it would be better to create two parallel lines to show the region that will be filled.