[rfc-i] No, constraining to a custom SVG profile is not trivial
douglasroyer at gmail.com
Tue Jan 21 10:36:38 PST 2020
On 1/20/20 10:48 PM, Martin J. Dürst wrote:
> In SVG, there is actually a specific attribute for dealing with the
> variation in overall width of a text depending on the font. It is called
> textLength. Please see
> https://www.w3.org/TR/SVG11/text.html#TextElementTextLengthAttribute. I
> do not know whether this attribute is allowed in the RFC subset of SVG,
> but it should be.
Nope, not in Tiny SVG, or RFC-7996-SVG. And the supplied VISIO generated SVG file simply supplied the text positions in 'em' values, so it would take a lot of code to reverse that back to how to scale an unrelated font to the same width.
Doug Royer - (http://DougRoyer.US)
Douglas.Royer at gmail.com
More information about the rfc-interest