gimptextlayer: GIMP Library Reference Manual

## gimptextlayer gimptextlayer |

## Functions

gint32 | gimp_text_layer_new ()
gchar * | gimp_text_layer_get_text ()
gboolean | gimp_text_layer_set_text ()
gchar * | gimp_text_layer_get_markup ()
gchar * | gimp_text_layer_get_font ()
gboolean | gimp_text_layer_set_font ()
gdouble | gimp_text_layer_get_font_size ()
gboolean | gimp_text_layer_set_font_size ()
gboolean | gimp_text_layer_get_hinting ()
gboolean | gimp_text_layer_set_hinting ()
gboolean | gimp_text_layer_get_antialias ()
gboolean | gimp_text_layer_set_antialias ()
gboolean | gimp_text_layer_get_kerning ()
gboolean | gimp_text_layer_set_kerning ()
gchar * | gimp_text_layer_get_language ()
gboolean | gimp_text_layer_set_language ()
GimpTextDirection | gimp_text_layer_get_base_direction ()
gboolean | gimp_text_layer_set_base_direction ()
GimpTextJustification | gimp_text_layer_get_justification ()
gboolean | gimp_text_layer_set_justification ()
gboolean | gimp_text_layer_get_color ()
gboolean | gimp_text_layer_set_color ()
gdouble | gimp_text_layer_get_indent ()
gboolean | gimp_text_layer_set_indent ()
gdouble | gimp_text_layer_get_line_spacing ()
gboolean | gimp_text_layer_set_line_spacing ()
gdouble | gimp_text_layer_get_letter_spacing ()
gboolean | gimp_text_layer_set_letter_spacing ()
GimpTextHintStyle | gimp_text_layer_get_hint_style ()
gboolean | gimp_text_layer_set_hint_style ()
gboolean | gimp_text_layer_resize ()

## Description

## Functions

### gimp_text_layer_new ()

    gint32
    gimp_text_layer_new (gint32 image_ID,
                         const gchar *text,
                         const gchar *fontname,
                         gdouble size,
                         GimpUnit unit);

Since: GIMP 2.6

### gimp_text_layer_get_text ()

    gchar *
    gimp_text_layer_get_text (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_text ()

    gboolean
    gimp_text_layer_set_text (gint32 layer_ID,
                              const gchar *text);

Since: GIMP 2.6

### gimp_text_layer_get_markup ()

    gchar *
    gimp_text_layer_get_markup (gint32 layer_ID);

Since: GIMP 2.8

### gimp_text_layer_get_font ()

    gchar *
    gimp_text_layer_get_font (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_font ()

    gboolean
    gimp_text_layer_set_font (gint32 layer_ID,
                              const gchar *font);

Since: GIMP 2.6

### gimp_text_layer_get_font_size ()

    gdouble
    gimp_text_layer_get_font_size (gint32 layer_ID,
                                   GimpUnit *unit);

Since: GIMP 2.6

### gimp_text_layer_set_font_size ()

    gboolean
    gimp_text_layer_set_font_size (gint32 layer_ID,
                                   gdouble font_size,
                                   GimpUnit unit);

Since: GIMP 2.6

### gimp_text_layer_get_hinting ()

    gboolean
    gimp_text_layer_get_hinting (gint32 layer_ID,
                                 gboolean *autohint);

`gimp_text_layer_get_hinting` is deprecated and should not be used in newly-written code.

Use `gimp_text_layer_get_hint_style()` instead.

### gimp_text_layer_set_hinting ()

    gboolean
    gimp_text_layer_set_hinting (gint32 layer_ID,
                                 gboolean hinting,
                                 gboolean autohint);

`gimp_text_layer_set_hinting` is deprecated and should not be used in newly-written code.

Use `gimp_text_layer_set_hint_style()` instead.

Since: GIMP 2.6

### gimp_text_layer_get_antialias ()

    gboolean
    gimp_text_layer_get_antialias (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_antialias ()

    gboolean
    gimp_text_layer_set_antialias (gint32 layer_ID,
                                   gboolean antialias);

Since: GIMP 2.6

### gimp_text_layer_get_kerning ()

    gboolean
    gimp_text_layer_get_kerning (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_kerning ()

    gboolean
    gimp_text_layer_set_kerning (gint32 layer_ID,
                                 gboolean kerning);

Since: GIMP 2.6

### gimp_text_layer_get_language ()

    gchar *
    gimp_text_layer_get_language (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_language ()

    gboolean
    gimp_text_layer_set_language (gint32 layer_ID,
                                  const gchar *language);

Since: GIMP 2.6

### gimp_text_layer_get_base_direction ()

    GimpTextDirection
    gimp_text_layer_get_base_direction (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_base_direction ()

    gboolean
    gimp_text_layer_set_base_direction (gint32 layer_ID,
                                        GimpTextDirection direction);

Since: GIMP 2.6

### gimp_text_layer_get_justification ()

    GimpTextJustification
    gimp_text_layer_get_justification (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_justification ()

    gboolean
    gimp_text_layer_set_justification (gint32 layer_ID,
                                       GimpTextJustification justify);

Since: GIMP 2.6

### gimp_text_layer_get_color ()

    gboolean
    gimp_text_layer_get_color (gint32 layer_ID,
                               GimpRGB *color);

Since: GIMP 2.6

### gimp_text_layer_set_color ()

    gboolean
    gimp_text_layer_set_color (gint32 layer_ID,
                               const GimpRGB *color);

Since: GIMP 2.6

### gimp_text_layer_get_indent ()

    gdouble
    gimp_text_layer_get_indent (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_indent ()

    gboolean
    gimp_text_layer_set_indent (gint32 layer_ID,
                                gdouble indent);

Since: GIMP 2.6

### gimp_text_layer_get_line_spacing ()

    gdouble
    gimp_text_layer_get_line_spacing (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_line_spacing ()

    gboolean
    gimp_text_layer_set_line_spacing (gint32 layer_ID,
                                      gdouble line_spacing);

Since: GIMP 2.6

### gimp_text_layer_get_letter_spacing ()

    gdouble
    gimp_text_layer_get_letter_spacing (gint32 layer_ID);

Since: GIMP 2.6

### gimp_text_layer_set_letter_spacing ()

    gboolean
    gimp_text_layer_set_letter_spacing (gint32 layer_ID,
                                        gdouble letter_spacing);

Since: GIMP 2.6

### gimp_text_layer_get_hint_style ()

    GimpTextHintStyle
    gimp_text_layer_get_hint_style (gint32 layer_ID);

Since: GIMP 2.8

### gimp_text_layer_set_hint_style ()

    gboolean
    gimp_text_layer_set_hint_style (gint32 layer_ID,
                                    GimpTextHintStyle style);

Since: GIMP 2.8

### gimp_text_layer_resize ()

    gboolean
    gimp_text_layer_resize (gint32 layer_ID,
                            gdouble width,
                            gdouble height);

Since: GIMP 2.8

## Types and Values