[gl2ps] Replacing "baseline-shift" by "dy" in svg output
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Tue Oct 25 21:10:50 CEST 2016
Pantxo - Indeed; patch applied.
Christophe
> On 23 Sep 2016, at 13:41, Pantxo Diribarne <pantxo.diribarne at gmail.com> wrote:
>
> 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
>
>
> <baseline.patch>_______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info