I can do the measure of text with tkFont, but I don't want a root window --> tk.Tk()
Now I have this, and it works
root = tk.Tk() font = tkFont.Font(family=fn, size=fs) w, h = (font.measure(text), font.metrics("linespace")) root.destroy()
2.1m questions
2.1m answers
60 comments
57.0k users