Добрый день Имеется SVG вида:
| Код | <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1682.832px" height="1223.938px" viewBox="0 0 841.416 611.969" enable-background="new 0 0 841.416 611.969" xml:space="preserve"> <defs> <style type="text/css">
@font-face { font-family: Charter; src: url('charterc.otf'); } </style>
<filter id="alpha"> <feComponentTransfer in="SourceGraphic"> <feFuncR type="table" tableValues="0 1"/> <feFuncG type="table" tableValues="0 1"/> <feFuncB type="table" tableValues="0 1"/> <feFuncA type="identity"/> </feComponentTransfer> </filter>
<pattern id="pattern1" x="0%" y="0%" width="224" height="16" patternUnits="userSpaceOnUse" patternTransform="rotate(0)"> <image x="0" y="0" width="224" height="16" filter="url(#alpha)" xlink:href="pattern_1.jpg"/> </pattern>
<mask id="mask" x="0" y="0" width="1" height="1" maskUnits="objectBoundingBox"> <rect x="0" y="0" width="100%" height="100%" fill="url(#pattern1)"></rect> </mask> </defs>
<text x="210" y="413" font-family="Charter" font-size="10.5" fill="black" text-anchor="middle" mask="url(#mask)">ТЕКСТ</text>
|
Необходимо конвертировать SVG в PNG. Примеров находил немало. На c#, или например, используя Inkscape, но не помогло пока ничего. При конвертации кастомный шрифт не ставится, маска с текстурой не накладывается. Inkscape вообще не отобразил текст, когда я в нём открыл svg. |