Getting SVG content

Discussion in 'Iconify Support' started by LuisHP, Feb 24, 2018.

  1. LuisHP

    LuisHP New Member

    Hi from Spain!.
    I have just found this great project searching for a way to include a SVG icon library in my educational project.
    I'm using FabricJS to insert SVG graphics into HTML5 canvas, so I need some way to retrieve the actual SVG code of each icon.
    Is it possible with SimpleSVG?
    Thank you very much.
  2. Arty

    Arty Administrator Designer

    Yes. There are several ways to do that.

    1. Use SVG directly without SimpleSVG. Search icons here:
    Click any icon, it will show you code for icon. Click "SVG" tab and you'll have SVG code.

    2. Using SimpleSVG to preload icons, then retrieving SVG data. Its a bit more complex because preloading is asynchronous. See this tutorial:
    LuisHP likes this.
  3. pavloff.lab

    pavloff.lab New Member

    I see you know a lot about it
    Then please advise which program is better to edit SVG files
    Gimp Editor or Inkscape&
  4. Arty

    Arty Administrator Designer

    Neither of those. I recommend Figma and Sketch.