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

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


with the patch

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

>
>
> 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/6dec057a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: baseline.patch
Type: text/x-diff
Size: 2411 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20160923/6dec057a/attachment.patch>