Gimp.text_layer_set_justification

function text_layer_set_justification(layer: Gimp.Layer, justify: Gimp.TextJustification): Boolean {
    // Gjs wrapper for gimp_text_layer_set_justification()
}
  

Set the justification of the text in a text layer.

This procedure sets the alignment of the lines in the text layer relative to each other.

Since 2.6

layer

The text layer.

justify

The justification for your text.

Returns

TRUE on success.