是否可以从文本制作SVG图像? [英] Is it possible to to make SVG image from Text?
本文介绍了是否可以从文本制作SVG图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,假设文本为"URL
".
我了解有SVG文字和SVG图片.
For example, imagine the text "URL
".
I understand that there is SVG Text and SVG image.
是否可以从文本中创建<img>
标签中使用的图像(无需绘制文本行)?
Is it possible to create and image that can be used in an <img>
tag from text (without drawing the line of the text)?
推荐答案
您可以只使用数据URI ,其中包含SVG文本...
You can just use a data URI with the SVG text in it if you want...
<img src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><text x="0" y="35">URL</text></svg>'>
这篇关于是否可以从文本制作SVG图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文