I needed this and could not find it. So I share it here (and even better if Google'd index it!) def textwidth(text, fontsize=14): try: import cairo except Exception, e: return len(str) * fontsize...
Why ? Convert SVG files to PDF or PNG, with full Unicode support (right-to-left languages), transparency, gradients, PDF image compression, ... Cairo and librsvg are the best in town. Cairo and...