Failure to render SVG properly

Bug #635619 reported by pltxtra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsvg-android
Confirmed
High
Unassigned

Bug Description

When trying to render the SVG:s attached to bug #632464 nothing is rendered. The result is a blank screen.

Comparing this to other SVG rendering programs, the output of libsvg-android is wrong, aka a "bug".

pltxtra (pltxtra)
Changed in libsvg-android:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Daniel Olsson (daniel-b-olsson) wrote :

It seems that the library does not support CSS style format. It should not be too hard to add CSS style to SVG style functionality to the library. See: http://www.w3.org/TR/SVG/styling.html

I could be wrong, but during my testing no CSS styled SVGs worked. Have not checked the code though...

Revision history for this message
pltxtra (pltxtra) wrote :

Yes, that's part of what is missing in the library. Unfortunately I have to prioritize my app development, which prevents me from investing the time needed to fix that. The library as it is now works for me, so it's not really not something I can spend time on... :-( If you really need it I suggest you select one of the following:

 1) find a working alternative library (let me know if you do.. :-)
 2) write a working library from scratch, or help someone out who does.
 3) fix the problem in libsvg-android (it might be the most time effective way, if you can write C..)
 4) pray to the Gods... ;-)

Please note - someone suggested that my approach with JNI will not be able to parse large SVG files since the way the JNI interface is limited on Android. This is a fundamental design flaw in JNI that one would have to find a way around. This might be simple or hard, I do not have a clue at the moment.

My personal belief is that if one decides to spend time improving the SVG situation on Android, it would be better spent writing a completely new library specifically designed for Android. libsvg is really a mess of C code. Easy to port to Android, but hard to actually understand and fix when something goes wrong...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.