2 Replies Latest reply on May 28, 2015 4:15 AM by csodemann

    Bug in Filemaker 14 implementation?

    csodemann

      I have a problem with SVGs in Filemaker 14. Paths tend to get filled. Even the ones that are no closed. Consider this simple arrow. It will render as a filled button icon even though it is not closed (no z included). You may chop off as many strokes as you like, it still gets closed for some reason.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
      <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="50" height="50" viewBox="0, 0, 50, 50">
        <g id="Arrow">
          <path d="M28,12 L28,21 L5,21 L5,29 L28,29 L28,38 L45,25 L28,12" />
        </g>
      </svg>
      

       

      Can anyone reproduce this, or come up with a magic tag, that will keep the path open? Check this neat document for reference:

       

           FileMaker Pro 14 SVG Grammar for Button Icons

       

      Regards,

       

      Christian

        • 1. Re: Bug in Filemaker 14 implementation?
          beverly

          I think you mean chop off points. You are not specitying the stroke or fill. What happens is you add these attributes:

           

          fill="none" stroke="black" stroke-width="1"

           

          Paths – SVG 1.1 (Second Edition)

          &

          Paths – SVG Tiny 1.2

           

          beverly

          • 2. Re: Bug in Filemaker 14 implementation?
            csodemann

            I have tried just about every trick in the book. Setting fill="none" does not work on "path" tags either. Removing the "stroke" color manually allows Filemaker to change the line color of the icons at least, but it will still fill paths.

             

            I have been working with icons8.com to find a simple solution. They have adjusted their "simple svgs" in black, so they come out as "path" with no mention of fill. The color and fill of those icons work in Filemaker. The scaling is another problem. Filemaker does not respect the given 50x50 viewBox and scales to its own 24x24 viewBox, making it impossible to scale the icons.

             

            So out of luck here, I guess.

             

            Christian