Canvas SVG parser: Difference between revisions

m
→‎Supported SVG features: http://forum.flightgear.org/viewtopic.php?f=71&t=23299#p213304
m (→‎Supported SVG features: http://forum.flightgear.org/viewtopic.php?f=71&t=23299#p213304)
Line 95: Line 95:
* https://developer.mozilla.org/en-US/docs/SVG/Tutorial/SVG_Image_Tag
* https://developer.mozilla.org/en-US/docs/SVG/Tutorial/SVG_Image_Tag
* http://www.w3.org/TR/SVG/struct.html#ImageElement
* http://www.w3.org/TR/SVG/struct.html#ImageElement
Shapes are also currently not supported, you'll typically want to use Inkscape's "simplify" option:
{{FGCquote
  |Learnt the hard way that SVG parsing (for ''svg_path'' in ''AA.symbol'') in FG doesn't recognize ''<circle>'', ''<ellipse>'', etc., so I opened my hand-coded SVG in Inkscape and used ''Path->Simplify'' (which ostensibly converts shapes to paths) to convert it to a code compatible with FG.
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=213304#p213304
    |title=<nowiki>Re: Get objects to show up on Map/Radar</nowiki>
    |author=<nowiki>RevHardt</nowiki>
    |date=<nowiki>Tue Jun 24</nowiki>
  }}
}}


== Advanced usage ==
== Advanced usage ==