Error in Export to SVG: Text centered in CorelDraw is not centered in SVG

I found no other way of submitting an error report on CorelDraw X6...

I have a simple drawing exported as SVG-file. There are three short texts with a colored background and those texts should be centered on that backgrounds. The file is being used as illustration in Wikipedia articles.

CorelDraw should center those texts by using the "text-anchor" property with value "middle" and setting the anchor appropriately, but it doesn't. On "text-anchor" see

http://www.w3.org/TR/SVG11/text.html#TextAlignmentProperties

and https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-anchor

The lack of a proper text-alignment by CorelDraw results in an awkward appearance after converted to PNG by the Wikimedia software.

The SVG file can be found here https://commons.wikimedia.org/wiki/File:Zungenbahnsteig_Hanau_Nordmainische_S-Bahn.svg

and there has been a discussion about the problem (in German language) here:

https://commons.wikimedia.org/wiki/Commons:Forum#Text_in_SVG:_Wikipedia_unterdr.C3.BCckt_schlie.C3.9Fende_Leerzeichen

I would appreciate if a fix for this problem in X6 could be produced and delivered soon.

 

  • Additional info on the problem:

    The background color to the text is an attribute of the text in Corel Draw (and moves with the text), but is exported to SVG as a colored box (defined by the "polygone" tag or the "path" tag), independently of the text.

    So, to prevent a misalignment by rendering the background box and the foreground text independently of the other, CorelDraw should export the text with the "text-anchor: middle" attribute, especially when the text is set as "centered" in CorelDraw itself. And set the anchor appropriately.