GutterRendererText.measure

void measure(string text, out int width, out int height)

Measures the text provided using the pango layout used by the #GtkSourceGutterRendererText.

Parameters

textthe text to measure.
widthlocation to store the width of the text in pixels, or null.
heightlocation to store the height of the text in pixels, or null.