gimp-text-layer-new

Marcus Heese <heese@cip.ifi.lmu.de>

Description

Creates a new text layer.

Help

This procedure creates a new text layer. The arguments are kept as simple as necessary for the normal case. All text attributes, however, can be modified with the appropriate gimp_text_layer_set_*() procedures. The new layer still needs to be added to the image, as this is not automatic. Add the new layer using 'gimp-image-insert-layer'.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image
PF_VALUE text The text to generate (in UTF-8 encoding)
PF_VALUE fontname The name of the font
PF_FLOAT size The size of text in either pixels or points (0 <= size <= 8192)
PF_INT unit The units of specified size

Return

Type Name Description
PF_LAYER layer The new text layer.