Add custom CSS style to SVG output

+2 votes
asked May 16, 2022 in Question / help by anonymous
Is it possible to add custom CSS rules in SVG output ?
commented Oct 30, 2022 by Fuhrmanator (1,700 points)

I second this request - my use case is with "handwritten" drawings - I want to specify the xkcd Script font that I've put on my web site. Basically, I'd like to have a way to include information inside the SVG <defs></defs> element, e.g.:

<defs>
      <style type="text/css">
        @font-face {
          font-family: 'xkcd Script';
          src: url('https://cdn.rawgit.com/dummy-index/xkcd-font/master/xkcd-script/font/xkcd-script.ttf') format('truetype'),
            url('https://cdn.rawgit.com/dummy-index/xkcd-font/master/xkcd-script/font/xkcd-script.woff') format('woff');
        }
      </style>
</
defs>

Hoping @plantuml can consider this yes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...