After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 524433 - Text-decoration (including underlining) not rendering
Text-decoration (including underlining) not rendering
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-26 04:18 UTC by FT2
Modified: 2017-12-13 17:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description FT2 2008-03-26 04:18:07 UTC
Please describe the problem:
Copied from Wikimedia bug report 
https://bugzilla.wikimedia.org/show_bug.cgi?id=13495

Code such as <tspan text-decoration="underline"> ... </tspan> doesn't render the underline in Mediawiki. (overline doesn't render either suggesting the problem is text-decoration generally)

Steps to reproduce:
Example:  The following SVG code (SVG attached) will render in Opera 9.5's  SVG renderer, and Adobe's SVG renderer (for IE6) as three underlined texts, but librsvg ignores the underline attribute in all 3 lines:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg width="500" height="450" version="1.1" xmlns="http://www.w3.org/2000/svg">
   <text style="font-size:14px;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial">
      <tspan x="20" y='20' text-decoration="underline">Underline me!</tspan>
      <tspan x="50" y='40' style="text-decoration:underline">Underline
me!</tspan>
      <tspan x="70" y='60'>The following text is <tspan "text-decoration="underline">underlined</tspan>.</tspan>
   </text>
</svg>


Likewise the SVG demo for underlining, overlining and other text decoration at this page:
http://www.svgbasics.com/font_effects_bold.html 
if saved as an SVG file, doesnt render any of the text decoration that the tutorial says should render, although if opened in IE+Adobe or Opera 9.5 as an SVG it does. (Note - you have to remove the "contentScriptType=text/ecmascript" to get mediawiki to upload it)

Finally compare this image on Wikipedia as a WP render and when viewed native in IE+Adobe or Opera 9:

http://en.wikipedia.org/wiki/Image:BLP_flowchart_2.svg (no underlines)
and
http://upload.wikimedia.org/wikipedia/en/thumb/f/f0/BLP_flowchart_2.svg/370px-BLP_flowchart_2.svg.png (contains underlines)

Actual results:
See above - librsvg doesnt render text-decorations

Expected results:
Decorations eg underlines visible on rendered images

Does this happen every time?
Yes

Other information:
Comment 1 Kurosawa Takeshi 2010-09-12 02:53:45 UTC
I can not reproduce this (I used librsvg 2.31.0).
librsvg supports text-decoration but Firefox doesn't.
Did you mean https://bugzilla.mozilla.org/show_bug.cgi?id=317196 ?
Comment 2 GNOME Infrastructure Team 2017-12-13 17:31:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/17.