Re: svg export -- tricks on font rendering by Firefox

2007-09-08 Thread Hans Breuer
On 01.09.2007 19:00, Lars Clausen wrote: On Sat, 2007-09-01 at 15:43 +0200, Thomas Harding wrote: Hello, I make tests on Firefox, and found appropriates values for text elements: we need to: -- divide the font-size value by 53 There should be some very good explanation for such an

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sat, Sep 01, 2007 at 07:00:30PM +0200, Lars Clausen wrote: On Sat, 2007-09-01 at 15:43 +0200, Thomas Harding wrote: Hello, I make tests on Firefox, and found appropriates values for text I'd be a lot more enthusiastic about improving SVG if a) different Forgotten the patch ! -- Thomas

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Lars Clausen
On Sun, 2007-09-02 at 11:31 +0200, Thomas Harding wrote: On Sat, Sep 01, 2007 at 07:00:30PM +0200, Lars Clausen wrote: On Sat, 2007-09-01 at 15:43 +0200, Thomas Harding wrote: Hello, I make tests on Firefox, and found appropriates values for text I'd be a lot more enthusiastic about

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sun, Sep 02, 2007 at 02:28:19PM +0200, Lars Clausen wrote: Why are you adding a text_line renderer to the SVG plug-in when there's already one in lib/diasvgrenderer.c? I was not sure about the lib/diasvgrenderer.c role. However, there are already properties redefinitions in the SVG plug-in

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Lars Clausen
On Sun, 2007-09-02 at 15:42 +0200, Thomas Harding wrote: On Sun, Sep 02, 2007 at 02:28:19PM +0200, Lars Clausen wrote: Why are you adding a text_line renderer to the SVG plug-in when there's already one in lib/diasvgrenderer.c? I was not sure about the lib/diasvgrenderer.c role. However,

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sun, Sep 02, 2007 at 03:52:34PM +0200, Lars Clausen wrote: The SVG plug-in is but an extension of the DiaSvgRenderer, so it'd be better to improve the base class. After further reading of SVG specification, I think the better way is to specify an arbitrary font size in pt as style of SVG

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sun, Sep 02, 2007 at 06:03:08PM +0200, Thomas Harding wrote: It seems, for that purpose, I need to change both plug-in and DiaSvgRenderer. Here is the new patch, based on the above sentence. -- Thomas Harding Index: lib/diasvgrenderer.c

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sun, Sep 02, 2007 at 07:34:35PM +0200, Thomas Harding wrote: Here is the new patch, based on the above sentence. It seems the global font-size is not handled by Inkscape :( So, the following patch uses a fixed size in px for every text element in the svg output. The changes actually affects

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Lars Clausen
On Sun, 2007-09-02 at 20:24 +0200, Thomas Harding wrote: On Sun, Sep 02, 2007 at 07:34:35PM +0200, Thomas Harding wrote: Here is the new patch, based on the above sentence. It seems the global font-size is not handled by Inkscape :( So, the following patch uses a fixed size in px for

Re: svg export -- tricks on font rendering by Firefox

2007-09-02 Thread Thomas Harding
On Sun, Sep 02, 2007 at 08:24:48PM +0200, Lars Clausen wrote: The changes actually affects only lib/diasvgrenderer.c, I commented out the code in svg plugin. I think it is the definitive version. So in the end, it's just a scaling factor and px in the string? Yes, that's as simple as

svg export -- tricks on font rendering by Firefox

2007-09-01 Thread Thomas Harding
Hello, I make tests on Firefox, and found appropriates values for text elements: we need to: -- divide the font-size value by 53 -- add mm to the font-size -- Thomas Harding ___ Dia-list mailing list Dia-list@gnome.org

Re: svg export -- tricks on font rendering by Firefox

2007-09-01 Thread Lars Clausen
On Sat, 2007-09-01 at 15:43 +0200, Thomas Harding wrote: Hello, I make tests on Firefox, and found appropriates values for text elements: we need to: -- divide the font-size value by 53 -- add mm to the font-size 53??? Let's give that a swing... attached is a screenshot of what that