svgwrite_diagram: return "something" from draw_centered_text()
authorAntonio Ospite <ao2@ao2.it>
Tue, 26 Jun 2018 14:15:36 +0000 (16:15 +0200)
committerAntonio Ospite <ao2@ao2.it>
Wed, 27 Jun 2018 13:18:11 +0000 (15:18 +0200)
commit1cd1b488690ff3007df258adbfb198f5bdedfb80
tree258238ed3bd72e76829e0bdc6110c2b9a2a9d8a5
parenta09d49b69a701ce3b780aebd66eece715d5eb605
svgwrite_diagram: return "something" from draw_centered_text()

Add a quick and dirty way to advance text when calling
draw_centered_text() just for consistency with the cairo backend.

The return value is just a rough estimate, it does not consider the
particular font in use.
src/diagram/svgwrite_diagram.py