Menu

#1 recursive substitution of fonts

v1.0 (example)
closed
nobody
None
5
2019-08-18
2008-07-15
Anonymous
No

Hi, tried some conversion from svg wmf. Installed uniconv 1.1.2 for windows with python 2.5.2 and the graphical extension, and added the path afterward to windows PATH.

Conversion failed, missing fonts (which is to blame maybe paython not to find the installed font)

second thing looks like an bug in uniconv, the substitution of the non existing font slim with slim...

greetings

uniconv "c:\Adressing.svg" c:\Ad.wmf
I can't find font Bitstream Vera Sans. I'll use Slim instead
I can't find font Slim. I'll use Slim instead
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 979, in Load
xml_reader.parse(input_source)
File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Python25\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Python25\lib\xml\sax\expatreader.py", line 301, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 338, in startElement
getattr(self, method)(attrs)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 904, in begin_text
self.parse_style(style)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 384, in parse_style
self.try_add_style(key, val)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "C:\Python25\Lib\site-packages\uniconvertor\app\Graphics\font.py", line 4
25, in GetFont
return GetFont(config.preferences.fallback_font)
File "C:\Python25\Lib\site-packages\uniconvertor\app\Graphics\font.py", line 4
26, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python25\lib\site-packages\uniconvertor\__init__.py", line 70, in <mo
dule>
doc = load.load_drawing(sys.argv[1])
File "C:\Python25\lib\site-packages\uniconvertor\app\io\load.py", line 364, in
load_drawing
return load_drawing_from_file(file, filename)
File "C:\Python25\lib\site-packages\uniconvertor\app\io\load.py", line 337, in
load_drawing_from_file
doc = loader.Load()
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 979, in Load
xml_reader.parse(input_source)
File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Python25\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Python25\lib\xml\sax\expatreader.py", line 301, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 338, in startElement
getattr(self, method)(attrs)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 904, in begin_text
self.parse_style(style)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 384, in parse_style
self.try_add_style(key, val)
File "C:\Python25\Lib\site-packages\uniconvertor\app\plugins\Filters\svgloader
.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "C:\Python25\Lib\site-packages\uniconvertor\app\Graphics\font.py", line 4
25, in GetFont
return GetFont(config.preferences.fallback_font)
File "C:\Python25\Lib\site-packages\uniconvertor\app\Graphics\font.py", line 4
26, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    tested under gentoo, too. exact same problem.

     
  • Igor E. Novikov

    Igor E. Novikov - 2019-08-18
    • status: open --> closed
    • Group: --> v1.0 (example)
     

Log in to post a comment.