[rfc-i] No, constraining to a custom SVG profile is not trivial

Phillip Hallam-Baker phill at hallambaker.com
Tue Jan 21 12:38:00 PST 2020


On Tue, Jan 21, 2020 at 1:36 PM Doug Royer <douglasroyer at gmail.com> wrote:

> 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.
>

I can fix these values up without too much effort because there are only a
few fonts specified and I can pull the values out of the definitions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rfc-editor.org/pipermail/rfc-interest/attachments/20200121/d742170f/attachment.html>


More information about the rfc-interest mailing list