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.
if bb_stroke_color or bb_fill_color:
warnings.warn("Drawing the bounding box has not been implemented yet.")
if bb_stroke_color or bb_fill_color:
warnings.warn("Drawing the bounding box has not been implemented yet.")
+
+ # XXX: this is just a very quick and dirty estimate to advance the text
+ return self.font_size * len(text) / 2