From: Marius Gedminas <marius@gedmin.as>
... | ... |
@@ -467,7 +467,10 @@ class XDotAttrParser: |
467 | 467 |
elif op == "C": |
468 | 468 |
pen.fillcolor = s.read_color() |
469 | 469 |
elif op == "S": |
470 |
- s.read_text() |
|
470 |
+ style = s.read_text() |
|
471 |
+ if style.startswith("setlinewidth("): |
|
472 |
+ lw = style.split("(")[1].split(")")[0] |
|
473 |
+ pen.linewidth = float(lw) |
|
471 | 474 |
elif op == "F": |
472 | 475 |
pen.fontsize = s.read_float() |
473 | 476 |
pen.fontname = s.read_text() |