How can I get browsers to display Inkscape .91 svg files properly?
Neither Firefox (60.7.2esr) nor Opera (58.0.3135.68) display my Inkscape .91 files correctly. Only a small corner of the file appears, and text is missing. Why is that?
Is there anything I can do to make Inkscape files work with these browsers?
Both browsers display the following simple SVG file correctly:
Thanks for the response. I'm hoping to upgrade my Linux system from openSUSE 14.2 to 15.1 in a few months, and that will bring in Inkscape .92, I hope.
I've looked at the 14.2 YaST repository and, unfortunately, .91-8.30 is the only version present there. So I have a number of questions:
* Will a version that's not in the SUSE 14.2 repository work? * Do I have to add an Inkscape repository to retrieve it? * If I can't use YaST, do I use rpm? zypper? Are there installation instructions? * Will .92 work with my existing files? * Can I keep both versions till I'm sure .92 works properly?
The question in my first post was intended in a general way. I thought that someone might know of an article on the subject. I wasn't looking for debugging help.
Looking at the Inkscape file, I see a number of "flow" tags. None of these tags are listed on Mozilla's SVG element reference -- https://developer.mozilla.org/en-US/docs/Web/SVG/Element -- so I assume they are not supported by browsers. When I replaced them with simple <text> elements and removed suspect transform translations, I got better results.
If .92 uses <text> and <tspan> elements and allows CSS text styles, that would give me an additional reason to upgrade.
Without examples, I can only guess about the display of the foreign files, but it may be related to not having a viewbox attribute in the header.
I'm a Linux nooB, so I can't help much on the YaST issues, so check with the devs. I'm running a Mint couple of machines with 1.0, but my daily-driver is v.92.2 under Win 8.1... rick solid and plenty of popular extensions.
Flow-text was never adopted into the svg spec, and regarded as incompatible with browsers and other renderers. Flow was included in Inkscape as a convenient way to format text before converting to standard text. http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Text-Flow.html
How can I get browsers to display Inkscape .91 svg files properly?
Neither Firefox (60.7.2esr) nor Opera (58.0.3135.68) display my Inkscape .91 files correctly. Only a small corner of the file appears, and text is missing. Why is that?
Is there anything I can do to make Inkscape files work with these browsers?
Both browsers display the following simple SVG file correctly:
<svg version="1.1"
baseProfile="full"
width="300" height="200"
xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="red" />
<circle cx="150" cy="100" r="80" fill="green" />
<text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text>
</svg>
Inkscape also displays this file correctly and allows me to edit it.
When I save the edited version, Inkscape adds numerous headers and tags. Firefox and Opera both display the edited file correctly.
So some files produced by Inkscape do work with the browsers, and others do not.
Please provide some sample files:
It is advised to update Inkscape to at least v.92.xx. Inkscape v.91 was released five years and many releases ago.
Thanks for the response. I'm hoping to upgrade my Linux system from openSUSE 14.2 to 15.1 in a few months, and that will bring in Inkscape .92, I hope.
I've looked at the 14.2 YaST repository and, unfortunately, .91-8.30 is the only version present there. So I have a number of questions:
* Will a version that's not in the SUSE 14.2 repository work?
* Do I have to add an Inkscape repository to retrieve it?
* If I can't use YaST, do I use rpm? zypper? Are there installation instructions?
* Will .92 work with my existing files?
* Can I keep both versions till I'm sure .92 works properly?
The question in my first post was intended in a general way. I thought that someone might know of an article on the subject. I wasn't looking for debugging help.
Looking at the Inkscape file, I see a number of "flow" tags. None of these tags are listed on Mozilla's SVG element reference -- https://developer.mozilla.org/en-US/docs/Web/SVG/Element -- so I assume they are not supported by browsers. When I replaced them with simple <text> elements and removed suspect transform translations, I got better results.
If .92 uses <text> and <tspan> elements and allows CSS text styles, that would give me an additional reason to upgrade.
Without examples, I can only guess about the display of the foreign files, but it may be related to not having a viewbox attribute in the header.
I'm a Linux nooB, so I can't help much on the YaST issues, so check with the devs. I'm running a Mint couple of machines with 1.0, but my daily-driver is v.92.2 under Win 8.1... rick solid and plenty of popular extensions.
There have been a great number of significant changes since 2015. Scale and text being at the forefront: https://wiki.inkscape.org/wiki/index.php?title=Release_notes/0.92
Flow-text was never adopted into the svg spec, and regarded as incompatible with browsers and other renderers. Flow was included in Inkscape as a convenient way to format text before converting to standard text. http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Text-Flow.html
Here is text in .92.2