Need some help with SVGs



  • hello again 🙂 I'm just now getting into SVGs and paths, and I can import other peoples ones just fine, but when I try and use my own (from Gravit Designer), the JUCE tool just spits out garbled nonsense. Even the horizontal line doesn't work

    the SVG i'm throwing into the projucer (straight Horizontal line) looks like:

    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="0 0 15 15" width="15pt" height="15pt"><defs><clipPath id="_clipPath_PYdAMgM5F5dPIUsO3ZuDAo371PBPpIeG"><rect width="15" height="15"/></clipPath></defs><g clip-path="url(#_clipPath_PYdAMgM5F5dPIUsO3ZuDAo371PBPpIeG)"><line x1="1" y1="7.5" x2="14" y2="7.5" vector-effect="non-scaling-stroke" stroke-width="1" stroke="rgb(0,0,0)" stroke-linejoin="miter" stroke-linecap="square" stroke-miterlimit="3"/></g></svg>
    

    6e372594-f16d-4218-b6d8-df2272174d56-image.png

    HISE renders absolutely nothing so I'm thinking it's the way Gravit exports stuff, or I'm just copying the wrong thing into the tool (what does the SVG data look like?)

    Is that even remotely close to what SVG data should look like? If it's not then I'll have to find another design program 🙂

    Cheers



  • Yep I tried Vecteezy's online editor and it exports an entirely different thing that works

    I guess Gravit's shelfed then ¯_(ツ)_/¯


Log in to reply
 

12
Online

1.3k
Users

4.3k
Topics

38.6k
Posts