# Gimp.Vectors.new_from_text_layer

    function new_from_text_layer(image: Gimp.Image, layer: Gimp.Layer): Gimp.Vectors {
        // Gjs wrapper for gimp_vectors_new_from_text_layer()
    }

Creates a new vectors object from a text layer.

Creates a new vectors object from a text layer. The vectors object needs to be added to the image using Gimp.Image.prototype.insert_vectors.

Since 2.6

image

  The image.

layer

  The text layer.

Returns

  The vectors of the text layer.