Clutter.Text.new_with_text
Description: Reference for Clutter.Text.new_with_text

### Constructor

# Clutter Textnew_with_text

#### Declaration [src]

    ClutterActor*
    clutter_text_new_with_text (
      const gchar* font_name,
      const gchar* text
    )

#### Description [src]

Creates a new `ClutterText` actor, using `font_name` as the font description; `text` will be used to set the contents of the actor.

This function is equivalent to calling clutter_text_new(), clutter_text_set_font_name(), and clutter_text_set_text().

Available since: | 1.0

#### Parameters

`font_name` | `const gchar*`
| A string with a font description.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`text` | `const gchar*`
| The contents of the actor.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `ClutterActor`
| The newly created `ClutterText` actor.
| The data is owned by the called function.