svgfonts

How to specify font-family in SVG


I have this piece of SVG picture:

<text
     xml:space="preserve"
     style="font-size:18px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;
            font-family:'Arial;Sans';
            -inkscape-font-specification:'Arial;Sans';font-stretch:normal;font-variant:normal"
     x="11.764346"
     y="192.01521"
     id="text3607"
     sodipodi:linespacing="125%"><tspan
       sodipodi:role="line"
       id="tspan3609"
       x="11.764346"
       y="192.01521">PCI-E</tspan></text>

which I edited on linux using inkscape. It used font "sans" which is not available on windows. I would like to specify a font-family that contains fonts available on all major operating systems, but whatever syntax I use it doesn't work. So far I tried:

What is correct syntax for this to work? I was rendering the picture in IE and Firefox, both seems to have same problems.


Solution

  • It seems that problem was I had it wrapped in quotes. Correct syntax (or at least it works to me):

    font-family:Sans,Arial; (no quotes)