# TextLayer
A node representing a text layer.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## TextLayer interface

A node representing a text layer.

**Signature:**

```typescript
interface TextLayer extends LayerMixin
```

**Extends:** [LayerMixin](/en/creator-api/nodes/layer-mixin)

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [text](/en/creator-api/nodes/text-layer/text)
      </td>

      <td />

      <td>
        string
      </td>

      <td>
        The text content of this layer.
      </td>
    </tr>

    <tr>
      <td>
        [type](/en/creator-api/nodes/text-layer/type)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        "TEXT\_LAYER"
      </td>

      <td>
        Layer type
      </td>
    </tr>

    <tr>
      <td>
        [fontFamily](/en/creator-api/nodes/text-layer/font-family)
      </td>

      <td />

      <td>
        string
      </td>

      <td>
        The font family used by this text layer.
      </td>
    </tr>

    <tr>
      <td>
        [fontStyle](/en/creator-api/nodes/text-layer/font-style)
      </td>

      <td />

      <td>
        string
      </td>

      <td>
        The font style (e.g. `"Regular"`, `"Bold"`).
      </td>
    </tr>

    <tr>
      <td>
        [fontSize](/en/creator-api/nodes/text-layer/font-size)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        The font size in pixels.
      </td>
    </tr>

    <tr>
      <td>
        [alignment](/en/creator-api/nodes/text-layer/alignment)
      </td>

      <td />

      <td>
        [TextAlignment](/en/creator-api/types/text-alignment)
      </td>

      <td>
        Horizontal alignment of the text.
      </td>
    </tr>

    <tr>
      <td>
        [fill](/en/creator-api/nodes/text-layer/fill)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        [SolidPaint](/en/creator-api/values/solid-paint) | undefined
      </td>

      <td>
        The solid fill paint applied to the text, if any.
      </td>
    </tr>

    <tr>
      <td>
        [stroke](/en/creator-api/nodes/text-layer/stroke)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        [TextStroke](/en/creator-api/types/text-stroke) | undefined
      </td>

      <td>
        The stroke applied to the text, if any.
      </td>
    </tr>
  </tbody>
</table>

## Methods

<table>
  <thead>
    <tr>
      <th>
        Method
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [createFill(opts)](/en/creator-api/nodes/text-layer/create-fill)
      </td>

      <td>
        Creates or replaces the solid fill on this text layer.
      </td>
    </tr>

    <tr>
      <td>
        [createStroke(opts)](/en/creator-api/nodes/text-layer/create-stroke)
      </td>

      <td>
        Creates or replaces the stroke on this text layer.
      </td>
    </tr>
  </tbody>
</table>
