- From: Mike Bremford via GitHub <sysbot+gh@w3.org>
- Date: Wed, 25 Sep 2019 16:48:26 +0000
- To: public-svg-issues@w3.org
@heycam - yes, fair point. I was making the assumption that the baseline of the textpath is the baseline at its start. One option would be to allow "start" or "end" to be specified - perhaps as a value to the previously-valueless attribute, or perhaps by using a structure like this: ```xml <text> <textPath path="..."> <tspan class="large">utterly dreary</tspan> to me <tspan i-am-the-horizontal-baseline="">&zwsp;</tspan> </textPath> </text> ``` If the text is itself subject to a transform or within a nested viewBox etc, then calculating that "y" value is not necessarily trivial - a statement that applies to any child element, not just text. In addition, the "y" value specified for <text> is the Y value of the dominant baseline - alphabetic, in my example above. If I understand @litherum's suggestion, the idea is to specify all the other baselines too - hanging, mathematical and so on. In short: if there's a transform or viewbox, or you want to specify a baseline other than the dominant one, working out the Y value(s) has to be done by hand and is potentially not trivial. -- GitHub Notification of comment by faceless2 Please view or discuss this issue at https://github.com/w3c/svgwg/issues/739#issuecomment-535111530 using your GitHub account
Received on Wednesday, 25 September 2019 16:48:27 UTC