[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43827] print svg with incorrect font baseline
From: |
Andreas Weber |
Subject: |
[Octave-bug-tracker] [bug #43827] print svg with incorrect font baseline |
Date: |
Thu, 01 Jan 2015 21:45:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0 |
Follow-up Comment #3, bug #43827 (project octave):
The SVG attribute in question is "baseline-shift"
http://www.w3.org/TR/SVG11/text.html#BaselineShiftProperty
The svg generated by gl2ps looks fine for me. It uses font-size="10" and
baseline-shift="-10" to draw the xlabels which should show text below the
box.
I've found a bugreport because baseline-shift isn't implemented in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=308338
I created a testimage
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<text x="10" y="40" style="font-size:26px">
(a+b)<tspan style="baseline-shift:super;font-size:18px">2</tspan>
</text>
<text x="10" y="80" style="font-size:26px">
c<tspan style="baseline-shift:sub;font-size:18px">11</tspan>
</text>
<text x="10" y="120" style="font-size:26px">
K<tspan style="baseline-shift:-20;font-size:18px">i=0</tspan>
</text>
</svg>
Only Inkscape renders correct here, LibreOffice, Gimp and Iceweasel fail
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43827>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43827] print svg with incorrect font baseline,
Andreas Weber <=