POV-Ray : Newsgroups : povray.off-topic : Text to SVG : Re: Text to SVG Server Time
2 Jul 2024 23:18:26 EDT (-0400)
  Re: Text to SVG  
From: Le Forgeron
Date: 29 Feb 2016 12:43:41
Message: <56d4834d$1@news.povray.org>
Le 29/02/2016 03:27, Bald Eagle a écrit :
> Was wondering if anyone knew of some software or (nowadays) a website that would
> take text and reliably convert it (in the chosen font) to discrete SVG objects.
> Either that, or explain how to make use of these "SVG fonts" I've seen
> mentioned,
> or how to use the font file itself to sort of directly create an SVG object.
> 
> The end of my work flow is usually SVG ---> DXF  ----> import to proprietary
> software, and the text never seems to "make it through", and the proprietary
> software seems to handle text horribly.

the SVG syntax (it's text... or rather xml, which is text) is rather
simple, if all you need is a unformatted text (aka single line) it can
be as simple as using a template and performing substitution of the text
in it.

The more complicated issue is giving the right dimension to the
container. Height for a single line can be easy, but width for a
non-mono font is going to be complex.

http://www.w3schools.com/svg/svg_text.asp

http://tutorials.jenkov.com/svg/text-element.html

https://www.w3.org/TR/SVG/fonts.html


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.