[Snippets/statShape] Handle empty shapes
This commit is contained in:
parent
1500e35b1c
commit
d5a08b3b96
@ -57,6 +57,7 @@ with cairo.SVGSurface("example.svg", hhea.advanceWidthMax, hhea.ascent-hhea.desc
|
||||
|
||||
ellipse_area = math.sqrt(lambda1) * math.sqrt(lambda2) * math.pi/4 * mult * mult
|
||||
|
||||
if stats.area:
|
||||
context.save()
|
||||
context.set_line_cap(cairo.LINE_CAP_ROUND)
|
||||
context.transform(transform)
|
||||
|
Loading…
x
Reference in New Issue
Block a user