> For the complete documentation index, see [llms.txt](https://docs.theseaai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseaai.com/main/ch/gong-ju/wen-ben.md).

# 文本

{% hint style="danger" %}
**文本** 是一个测试功能，可能无法按预期运行。

目前，您只能在“文本布局”任务中创建文本。在其他任务中使用可能会产生扁平化且不可预测的结果。此功能将逐步在所有任务中可用。
{% endhint %}

***

## 相关用例

* 向生成的图像添加产品名称、描述或促销文本
* 处理需要精确字符级控制的中日韩（CJK）文本
* 在单一平台上生成可用于生产的素材

***

## 使用方法

### <i class="fa-text" style="color:blue;">:text:</i> 创建新文本图层

{% stepper %}
{% step %}

#### 选择“文本布局”

在左侧任务菜单中选择 <kbd><mark style="color:$primary;">**文本布局**<mark style="color:$primary;"></kbd>.

这将打开文本布局工作区。

或者，将鼠标悬停在现有场景上并选择“从此图像继续”。
{% endstep %}

{% step %}

#### 选择“T”

在底部工具栏中，选择 <i class="fa-text" style="color:$primary;">:text:</i> <kbd><mark style="color:$primary;">**文本**<mark style="color:$primary;"></kbd> 工具。
{% endstep %}

{% step %}

#### 向场景添加文本

1. 在场景任意位置单击并输入您的文本
2. 当您在文本区域外单击时，文本图层将出现在图层列表中。

您可以在一个场景中创建任意数量的文本图层。&#x20;

{% hint style="warning" %}
**字符限制**

每个场景的文本图层没有硬性限制，但在文本图层数量非常多（100+）时性能可能会下降。
{% endhint %}
{% endstep %}
{% endstepper %}

### <i class="fa-message-pen" style="color:blue;">:message-pen:</i> 编辑现有文本图层

{% stepper %}
{% step %}

#### 选择一个文本图层

选择文本图层以移动、调整大小或修改它们。

**选择单个图层：**

* 单击任意文本图层以进行选择
* 文本周围会出现选择边框

**选择多个图层：**

* 按住 Shift 并点击每个文本图层
* 两个文本图层周围会出现选择边框

{% hint style="info" %}
**多图层选择**

选择多个图层后，您将能够对齐、分组它们并应用相同的文本样式。
{% endhint %}
{% endstep %}

{% step %}

#### 进行编辑

* **编辑您的文本：** 双击文本图层以编辑文本。
* **移动您的文本**：单击并拖动到新位置。
  {% endstep %}

{% step %}

#### 完成编辑

1. 单击文本区域外的任何位置以退出编辑模式。
2. 您的编辑会自动保存。
   {% endstep %}
   {% endstepper %}

***

## 其他文本功能

{% content-ref url="/pages/f354e532281eff17cd12a9c724d6ab6ee263df48" %}
[字体](/main/ch/gong-ju/wen-ben/zi-ti.md)
{% endcontent-ref %}

{% content-ref url="/pages/38df4c547ca5b48f25d3cc4f7ce8ec5a817eba64" %}
[文本设置](/main/ch/gong-ju/wen-ben/wen-ben-she-zhi.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.theseaai.com/main/ch/gong-ju/wen-ben.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
