Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font problem when opening svg file in Gimp
#2
I can reproduce the problem with Inkscape 0.91 and Gimp 2.8.18.

According to the SVG spec, the "style" syntax is the same as the one used in CSS and the later allows quotes (it even recommends them when there are spaces in font names).

So this could be a a bona fide bug (in Gimp or in the Cairo lib).

Futher edit: I can reproduce the problem with the following code:

Code:
import cairo, rsvg

img =  cairo.ImageSurface(cairo.FORMAT_ARGB32, 1000, 2000)
ctx = cairo.Context(img)

with open('Text2.svg') as svgfile:
    svgstr=svgfile.read()

handler= rsvg.Handle(None, svgstr)
handler.render_cairo(ctx)
img.write_to_png('Text2.png')

So the problem isn't in Gimp but in the Cairo/Rsvg libraries. Maybe you can upgrade them (or at least check is the bug is known)
Reply


Messages In This Thread
RE: Font problem when opening svg file in Gimp - by Ofnuts - 01-30-2017, 02:06 PM

Forum Jump: