
Librsvg's text support is known to suck, and it's something that we plan to improve before our 3.0 release. Bug reports and patches are, of course, welcome.
Firefox renders SVGs to screen (well, to a RGBA picture, and then blits that to screen) using Cairo. librsvg also uses Cairo, but only in our CVS HEAD version. No released version of librsvg uses Cairo.
This has nothing to do with Cairo. Cairo is just a drawing API. It doesn't know anything about SVGs. This has everything to do with librsvg's and Firefox's internals, which do understand SVGs.
On 10/17/05, John Taber <jtaber@...480...> wrote:
mental@...3... wrote:
OK.
- Cairo is not an SVG implementation
- Cairo is not an SVG implementation :)
- Cairo is a 2d graphics API
Are you perhaps referring to librsvg-cairo? Firefox has its own, different, SVG implementation.
well yes, you are right, shall we call it "svg under cairo" meaning the libsvg-cairo (which I guess is librsvg-cairo since they apparently have merged - I just don't know all the details). And I read that Firefox was going to Cairo rendering - what that means exactly I'm not sure, I just assumed they were going to use svg rendering under cairo.
Anyway after a bunch of testing I found Bulia was correct (most of the problem was our mistake of missing image link paths on another machine). But I did isolate another problem which seems to be on the "libsvg-cairo" end - it doesn't seem to recognize text line breaks with tspan (this happens with Inkscape and Plain SVG). The following example gives ADT 80 (same line) on cairo instead of ADT 80 (two lines) in Inkscape
same problem happened with a bunch of other multi line text examples. here is the example code:
<text xml:space="preserve" style="font-size:16.531573;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1.0000000;
stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter; stroke-opacity:1.0000000;font-family:Bitstream Vera Sans;font-stretch:normal; font-variant:normal;text-anchor:start;text-align:start;writing-mode:lr;line-height:125.00003%" x="525.83685" y="362.78998" id="text2029" transform="scale(0.948876,1.053878)" sodipodi:linespacing="125%"><tspan sodipodi:role="line" id="tspan2047" x="525.83685" y="362.78998">ADT</tspan><tspan sodipodi:role="line" id="tspan2049" x="525.83685" y="383.45444">80</tspan></text>
This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Librsvg-devel mailing list Librsvg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/librsvg-devel