diff options
author | Menner <mik@gmx.org> | 2016-01-02 09:42:53 +0100 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2016-01-05 19:36:06 -0600 |
commit | e804fb1adcf564ce4bae661cc595a8d4df55efd3 (patch) | |
tree | 47ae3ba21f06a5b2f27f82e34186ddfe0cad3554 /tests | |
parent | 1fc06fe6def169920f4032e348040c38be320fb1 (diff) | |
download | librsvg-e804fb1adcf564ce4bae661cc595a8d4df55efd3.tar.gz |
bgo#340047 - Add support for the "baseline-shift" text attribute
This commit adds support for the baseline-shift attribute for tags
"sub/super/baseline". We don't support percentages of the font size
or explicit lengths yet.
https://bugzilla.gnome.org/show_bug.cgi?id=340047
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fixtures/reftests/bugs/340047-ref.png | bin | 0 -> 4855 bytes | |||
-rw-r--r-- | tests/fixtures/reftests/bugs/340047.svg | 43 |
2 files changed, 43 insertions, 0 deletions
diff --git a/tests/fixtures/reftests/bugs/340047-ref.png b/tests/fixtures/reftests/bugs/340047-ref.png Binary files differnew file mode 100644 index 00000000..58957724 --- /dev/null +++ b/tests/fixtures/reftests/bugs/340047-ref.png diff --git a/tests/fixtures/reftests/bugs/340047.svg b/tests/fixtures/reftests/bugs/340047.svg new file mode 100644 index 00000000..4e0ee31a --- /dev/null +++ b/tests/fixtures/reftests/bugs/340047.svg @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="744.09448819" + height="1052.3622047" + id="svg2" + version="1.1" + inkscape:version="0.47 r22583" + sodipodi:docname="New document 1"> + + <g fill = "navy"> + <text x = "10" y = "25" font-size = "20"> + <tspan> + e = mc + <tspan baseline-shift = "super"> + 2 + </tspan> + </tspan> + <tspan x = "10" y = "60"> + T + <tspan baseline-shift = "sub"> + i+2 + </tspan> + =T + <tspan baseline-shift = "sub"> + i + </tspan> + + T + <tspan baseline-shift = "sub"> + i+1 + </tspan> + </tspan> + </text> + </g> +</svg> |