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 340047 - CSS baseline-shift directive
CSS baseline-shift directive
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.14.x
Other All
: Normal enhancement
: ---
Assigned To: librsvg maintainers
librsvg maintainers
: 585563 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-28 18:20 UTC by Arguile
Modified: 2016-01-06 01:46 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
sample svg (1.31 KB, image/svg+xml)
2010-04-11 06:20 UTC, Hiroyuki Ikezoe
  Details
patch_for_baseline_shift_sub_super (6.60 KB, patch)
2015-04-18 08:50 UTC, mik@gmx.org
none Details | Review
Add support for baseline shift. (7.16 KB, patch)
2015-04-23 20:06 UTC, mik@gmx.org
none Details | Review
This Patch adds support of baseline shift attribute for tags "sub/super/baseline" as requested in Gnome Bugzilla bug #340047. (7.22 KB, patch)
2015-05-15 11:45 UTC, mik@gmx.org
none Details | Review
Add support of baseline shift attribute (7.10 KB, patch)
2016-01-02 08:32 UTC, mik@gmx.org
none Details | Review
Update of patch that adds support for baseline shift attribute (11.82 KB, patch)
2016-01-02 08:45 UTC, mik@gmx.org
none Details | Review

Description Arguile 2006-04-28 18:20:25 UTC
Currently the CSS directive 'baseline-shift' is not understood or rendered.

Please see http://www.w3.org/TR/SVG/text.html#BaselineAlignmentProperties for
the expected behaviour and 'text-alignment-BE-10' from the W3C SVG test suite
for an SVG test case and the rasterized example.

Thanks.
Comment 1 Hiroyuki Ikezoe 2010-04-11 06:19:29 UTC
*** Bug 585563 has been marked as a duplicate of this bug. ***
Comment 2 Hiroyuki Ikezoe 2010-04-11 06:20:34 UTC
Created attachment 158406 [details]
sample svg

a sample file from bug #585563.
Comment 3 mik@gmx.org 2015-04-18 08:50:24 UTC
Created attachment 301888 [details] [review]
patch_for_baseline_shift_sub_super

Patch adding support of baseline shift attribute for tags "sub/super/baseline".

Plus minor commenting source code.
Comment 4 mik@gmx.org 2015-04-18 08:56:32 UTC
I want to annotate to the patch above adds only support for tags "sub/super/baseline" but not the other options specified by SVG. The supported tags are the only important and fulfill the given example "sample.svg".

Remark: I'm not an experienced gnomer.
Comment 5 André Klapper 2015-04-20 09:51:42 UTC
mik: Thanks for the patch! Is this against git master?
Bonus points for using "git format-patch" (includes author and commit summary) instead of plain "diff", see https://wiki.gnome.org/Git/Developers#Contributing_patches
Comment 6 mik@gmx.org 2015-04-20 18:44:26 UTC
Hi André!

Thanks for your quick response. Until next friday I have no access to my (stationary) Linux system and all my notes are there. So far I guess I used git://git.gnome.org/librsvg to get sources for libRSVG but I haven't seen the latest changes listed on https://git.gnome.org/browse/librsvg/ with gitg despite librsvg 2.40.9. Maybe I got the update wrong from the download I've did the week before.

I'm not familiar with git tools.

I'll try my best next weekend to get your requests done.
Comment 7 mik@gmx.org 2015-04-23 20:06:40 UTC
Created attachment 302265 [details] [review]
Add support for baseline shift.

Patch adds support of baseline shift attribute for tags "sub/super/baseline".

Plus minor commenting source code.
Comment 8 mik@gmx.org 2015-05-15 11:45:19 UTC
Created attachment 303420 [details] [review]
This Patch adds support of baseline shift attribute for tags "sub/super/baseline" as requested in Gnome Bugzilla bug #340047.

Previous patch violated coding style guideline.
Comment 9 mik@gmx.org 2016-01-02 08:32:00 UTC
Created attachment 318148 [details] [review]
Add support of baseline shift attribute
Comment 10 mik@gmx.org 2016-01-02 08:45:32 UTC
Created attachment 318149 [details] [review]
Update of patch that adds support for baseline shift attribute
Comment 11 mik@gmx.org 2016-01-02 08:51:40 UTC
The last patch also contains a binary png. Bugzilla doesn't show it during review.
Comment 12 Federico Mena Quintero 2016-01-06 01:46:49 UTC
This is really good!  Thanks for fixing this!

I've pushed this to master as commit e804fb1adcf564ce4bae661cc595a8d4df55efd3, with minor stylistic fixes.  This will appear in version 2.40.13.

I've filed bug #760191 to track the missing support for baseline-shift with a percentage of the font size or an explicit length.