PangoLayout::set_text

void set_text(string text, int length);

See also: get_text()