Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Inline SVG

$
0
0

Replies: 0

Hi,

Thank you for a great plugin!

Is it possible to insert an inline SVG into a question? I would like to use a custom font for the text in my SVGs, but I believe this font file can be used by an SVG only if the SVG is inline rather than in tags.

When I put the below basic SVG into the “text” mode of the editor and click save, most of it has disappeared when I look back at the editor.

<svg xmlns=”http://www.w3.org/2000/svg&#8221; viewBox=”0 0 277.39 52.32″><defs><style>.a{fill:#fff;stroke:#1d1d1b;stroke-miterlimit:10;}.b{font-size:12px;fill:#1d1d1b;font-family:MyriadPro-Regular, Myriad Pro;}</style></defs><line class=”a” y1=”0.5″ x2=”277.39″ y2=”0.5″/><text class=”b” transform=”translate(125.65 49.32)”>Hello</text></svg>

Is there a way to insert an inline SVG into a question?

Thanks!

  • This topic was modified 34 seconds ago by UCDguy.

Viewing all articles
Browse latest Browse all 59525

Trending Articles