- in SVG parser: made sure that the minimum number of steps to approximate an arc/circle/bezier is 10
This commit is contained in:
@@ -427,7 +427,9 @@ class QRCode(AppTool):
|
||||
# h = float(svg_root.get('height'))
|
||||
# w = float(svg_root.get('width'))
|
||||
h = svgparselength(svg_root.get('height'))[0] # TODO: No units support yet
|
||||
geos = getsvggeo(svg_root, object_type)
|
||||
units = self.app.defaults['units'] if units is None else units
|
||||
res = self.app.defaults['geometry_circle_steps']
|
||||
geos = getsvggeo(svg_root, object_type, units=units, res=res)
|
||||
|
||||
if flip:
|
||||
geos = [translate(scale(g, 1.0, -1.0, origin=(0, 0)), yoff=h) for g in geos]
|
||||
|
||||
Reference in New Issue
Block a user