flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

The attribute textLength appears to be ignored

Open Zeebzog opened this issue 2 years ago • 2 comments

This attribute seems to be ignored, am I doing something wrong?

<?xml version="1.0"?> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><text x="50" y="40" font-size="12px" fill="black" text-anchor="middle" textLength="90" lengthAdjust="spacingAndGlyphs" >Short </text><text x="50" y="80" font-size="12px" fill="black" text-anchor="middle" textLength="90" lengthAdjust="spacingAndGlyphs" >Really Long String </text> </svg>

Should result in:

image

But instead you get:

image

Zeebzog avatar Oct 05 '23 15:10 Zeebzog

This is part of SVG2 and not implemented. But I have no objections to implementing it if someone wants to create a patch.

dnfield avatar Oct 10 '23 03:10 dnfield

Sorry, it is part of 1.1 too and just not implemented :)

dnfield avatar Oct 10 '23 03:10 dnfield