[svgwg] lengthAdjust values just for shrinking

Herst has just created a new issue for https://github.com/w3c/svgwg:

== lengthAdjust values just for shrinking ==
A bit related to #152. Stretching/compressing of glyphs looks horrible but might be a necessary evil in some cases. So e.g. in order to prevent some text from escaping a box one would need the squeezing behavior but not the stretching behavior.

**So how about introducing new vales to the `lengthAdjust` attribute to only allow for only shrinking but not for stretching?**

Now the [current spec on the `textLength` attribute](https://svgwg.org/svg2-draft/text.html#TextElementTextLengthAttribute) says:

> The purpose of this attribute is to allow the author to achieve exact alignment, in visual rendering order after any bidirectional reordering, for the first and last rendered glyphs that correspond to this element

I see how this might be one of the uses of it, but compare it to e.g. [the description of it at MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/textLength):

> The user agent will ensure that the text **does not extend farther than** that distance, using the method or methods specified by the `lengthAdjust` l attribute.

(Highlight by me.)

As you can see, it's not exactly the same use case which is described here, because just for making sure that something "does not extend farther" the (rather unsightly) stretching functionality wouldn't be needed.

(BTW, I am looking into programmatic solutions for this right now: <https://stackoverflow.com/q/45761658/2261442>)


Please view or discuss this issue at https://github.com/w3c/svgwg/issues/341 using your GitHub account

Received on Monday, 21 August 2017 16:21:51 UTC