Inkscape.org
Beyond the Basics How to create a text font/style/class/family?
  1. #1
    DaveF DaveF @DaveF

    Hi

    How do I create a text font/style/class/family (Unsure of the correct terminology) so that I can amend the attributes of a font assigned to numerous text objects in one go?

    The XML code of an example of what I mean is from this site:

    https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

    <svg viewBox="0 0 240 80" xmlns="http://www.w3.org/2000/svg">
      <style>
        .small { font: italic 13px sans-serif; }
        .heavy { font: bold 30px sans-serif; }
        .Rrrrr { font: italic 40px serif; fill: red; }
      </style>
    
      <text x="20" y="35" class="small">My</text>
      <text x="40" y="35" class="heavy">cat</text>
      <text x="55" y="55" class="small">is</text>
      <text x="65" y="55" class="Rrrrr">Grumpy!</text>
    </svg>
    
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    In-depth tutorials on CSS and Inkscape begins in edition #172 of Full Circle magazine, links found here: http://www.peppertop.com/blog/?p=1563

Inkscape Inkscape.org Inkscape Forum Beyond the Basics How to create a text font/style/class/family?