Or, to be smarter, the size of the rendered content could be calculated (using pango functions) and the window size adjusted accordingly.
Or, to be smarter, the size of the rendered content could be calculated (using pango functions) and the window size adjusted accordingly.