SVG text rendering anomalies sometimes occur:
- if attributes are provided in group specifications <g___></g> or
- if <text> and <tspan> specifications are used together (<text> being like a grouping of <tspan>)
The anomalies seem to be solved by explicitly placing the attributes within '''''each specific''''' <text___></text> specification, to avoid depending on inheriting the attribute from the wider-scope <g>.
Examples:
- Versions 5 and 6 of https://commons.wikimedia.org/wiki/File:20220629_Public_estimates_of_scientific_consensus_on_climate_change_-_horizontal_bar_chart.svg (title at top does not center)
- Version 2 of https://commons.wikimedia.org/wiki/File:20220823_Public_underestimation_of_public_support_for_climate_action_-_poll_-_false_social_reality.svg (title at top does not center)
- Versions 2 and 3 of https://commons.wikimedia.org/wiki/File:2010-2070-2100_Climate_change_threatens_venues_of_Olympic_Winter_Games.svg (underscoring doesn't render properly)
Also:
- See https://commons.wikimedia.org/wiki/File:20230529_Inconsistent_simultaneous_displays_of_same_image_in_two_articles.png which shows simultaneous renderings of the first two files
- A discussion of this unresolved issue can be found at https://en.wikipedia.org/w/index.php?title=Wikipedia%3ASVG_help&diff=1157775976&oldid=1157367552 .
Thanks for considering,
RCraig09