sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Uniconvertor, CSS, presentation attributes, Slim?
#1 Print Post
Posted on 11-09-2009 21:05

Posts: 1
Joined: 11.09.09


Uniconvertor seems to be a really useful tool, however I ran into some trouble playing around with some SVG features (on an Ubuntu 08.04, Uniconvertor version 1.1.3):

1. only the style - attribute seems to be considered; presentation attributes like fill="none" are ignored (however, I could live without this feature).
2. What is worse, style sheets & the class attribute is ignored.
3. As soon as I have text in my file & try to export to wmf, uniconv aborts with a python exception telling me that the default 'Slim' is not available. My texts are usually monospace, so Courier would be great, but there seems to be trouble with font metrics or such when I replace Slim with Courier in the source code.

An example svg file is attached... no, I am not allowed to attach svg. So I just append it to this message...

Is there any hope that Problems 2 and 3 are going to be fixed in some (not too far) future release? Or any workaround? It would be really great having a tool which converts SVG line+ text graphics (mainly scientific diagrams) to WMF or CGM.

Best regards,


<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"

- a rectangle with a presentation attribute fill="none", and a class attribute (color)
- Some text, monospace.
<svg xmlns=""
xmlns:xlink="" version="1.1"
width="29.7cm" height="21.0cm" viewBox="0 0 29.7 21"
font-family="monospace" font-size="0.3">

<style type="text/css">
<![CDATA[ { stroke: green; }

<rect x="1" y="1" width="15" height="10" class="green" fill="none" />

<text x="2.5" y="2.5">
This rectangle should have a green border and no fill.

Edited by Chriss on 11-09-2009 21:09
#2 Print Post
Posted on 12-09-2009 04:22
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi Christopher!

Yes, we know that SVG importer is not perfect. Unfortunately we cannot start reimplementation right now because we are preparing next sK1 release which will contains some important features for SVG importer like RGBA colors/images, gradients support. So we can improve importers as in sK1 and in UniConvertor after renderer reimplementation.

For example Problem 3 is consequence of primitive text engine inherited from Skencil. We have improved text support in sK1 but these changes have not implemented in UniConverter because font engine is primitive and requires further improvements.

Igor Novikov
sK1 Project
Jump to Forum: