[gl2ps] Replacing "baseline-shift" by "dy" in svg output

Pantxo Diribarne pantxo.diribarne at gmail.com
Fri Sep 23 13:41:16 CEST 2016


2016-09-13 13:01 GMT+02:00 Pantxo Diribarne <pantxo.diribarne at gmail.com>:

> Hi,
>
> The vertical alignment of text elements in svg output is currently
> implemented through the "baseline-shift" attribute. As neither Firefox nor
> librsvg has implemented this attribute, I was wondering if using "dy" would
> be suited.
>
> Pantxo
>

I attached a simple patch that implements the proposed change. I think that
the difference between "dy" and "baseline-shift" is negligible if the text
has no children tspan with other fonts.
This allows the output svg to be displayed in both firefox and
librsvg-view3.

Pantxo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20160923/d203396a/attachment.html>