> 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/wen-ben-she-zhi.md).

# 文本设置

通过全局设置（应用于整个文本框）和字符级调整来控制文本外观，包括字号、字母间距、拉伸、行高、对齐和文本装饰。

**两种方法：**

* **全局设置：** 使用文本属性面板来调整整个文本框
* **字符级编辑：** 将鼠标悬停在未选中的文本上并拖动手柄，以调整单个字符，从而编辑字间距和字符拉伸

## 更改字号

{% tabs %}
{% tab title="通过拖动" %}
你可以拖动文本框的角点手柄来调整大小，这会按比例缩放字体。

<div align="left"><figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FbvadrDqmPFd3AqCieMUm%2Fgitbook_text_resize.png?alt=media&amp;token=dbad5d44-18fe-45db-9ddf-2298795c7121" alt=""><figcaption></figcaption></figure></div>

**步骤说明：**

1. 选择文本图层
2. 将鼠标悬停在角点手柄上，直到出现调整大小光标
3. 拖动以按比例缩放文本框和字号
4. 松开以应用新尺寸

{% hint style="info" %}
这种调整大小的方法会保持宽高比和按比例缩放。字符级调整会按其设定百分比相对于新的字号保留。
{% endhint %}
{% endtab %}

{% tab title="通过更改数值" %}
通过在文本属性面板中更改字号值来调整文本大小。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FwPAtNQO8164gKLYRXZ8M%2Fgitbook_text_resize_number.png?alt=media&amp;token=1592d8f4-616a-4788-8862-cc5ec5e791c2" alt=""><figcaption></figcaption></figure>

**步骤说明：**

1. 选择文本图层
2. 前往顶部栏并在文本设置面板中更改粗体值
   1. 你可以输入数值
   2. 或者水平点击并拖动以调整数值
3. 你可以实时看到文本以新尺寸更新

{% hint style="info" %}
你可以选择多个文本图层，并同时将该数值应用到所有图层。
{% endhint %}
{% endtab %}
{% endtabs %}

***

## 调整字间距

{% tabs %}
{% tab title="通过字符编辑" %}
**通过悬停并拖动来调整单个字符之间的间距**，无需任何菜单。这种可视化编辑方式对于 CJK 文本和精确排版尤其强大，可让你直接在画布上进行细微调整。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FhUM474UC0gTEh07XyfGf%2Fgitbook_text_space_JP.png?alt=media&amp;token=d1d7e079-eb4c-4323-a73e-5d45ab9375b3" alt=""><figcaption></figcaption></figure>

**步骤说明：**

1. 将鼠标悬停在两个字符之间，直到出现菱形手柄
2. 水平拖动以调整间距
3. 松开以应用更改

{% hint style="info" %}
如果你更改了文本字号，已编辑的字间距将会保留（直到你决定更改它或使用全局值）
{% endhint %}
{% endtab %}

{% tab title="通过更改数值" %}
使用文本属性面板将字间距应用到整个文本框。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FGHTOONebf3w2txCrliZg%2Fgitbook_text_space_number.png?alt=media&amp;token=eca5c389-219e-4fec-9870-d0275ea0d3e2" alt=""><figcaption></figcaption></figure>

**步骤说明：**

1. 选择文本图层
2. 前往顶部栏并选择 <i class="fa-text">:text:</i> 按钮
3. 在与 <kbd>字间距</kbd>同一行，调整数值
   1. 你可以输入数值
   2. 或者水平点击并拖动以调整数值
4. 你可以实时看到文本以新尺寸更新

{% hint style="info" %}
如果字符间距已被修改，全局值将显示为 <kbd>混合</kbd>.
{% endhint %}
{% endtab %}
{% endtabs %}

***

## 调整字符拉伸

{% tabs %}
{% tab title="通过字符编辑" %}
**调整单个字符宽度以获得视觉平衡**。对于专业的 CJK 排版尤为重要，因为字符通常需要调整宽度以获得合适的视觉密度；在混排 CJK 与拉丁文本时也很有用。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FyaXEiHSAGrG45kZWXqFS%2Fgitbook_text_width.png?alt=media&amp;token=d0dde5ba-6a9b-4475-8be3-a28b82d846fc" alt=""><figcaption></figcaption></figure>

**步骤说明：**

1. 将鼠标悬停在字符上，直到光标出现 <i class="fa-direction-left-right">:direction-left-right:</i>
2. 水平拖动以压缩或展开该字符
3. 松开以应用更改
   {% endtab %}

{% tab title="通过更改数值" %}
使用文本属性面板将字符拉伸应用到整个文本框。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FoHJZO9QnPCGQB60wOvot%2Fgitbook_text_stretch.png?alt=media&amp;token=eb287ca8-c6f6-4c72-be08-1b12172d03a6" alt=""><figcaption></figcaption></figure>

**步骤说明：**

1. 选择文本图层
2. 前往顶部栏并选择 <i class="fa-text">:text:</i> 按钮
3. 在与 <kbd>字间距</kbd>同一行，调整数值
   1. 你可以输入数值
   2. 或者水平点击并拖动以调整数值
4. 你可以实时看到文本以新尺寸更新

{% hint style="info" %}
如果字符拉伸已被修改，全局值将显示为 <kbd>混合</kbd>.
{% endhint %}
{% endtab %}
{% endtabs %}

***

## 设置行高

调整和管理文本框内各行文本之间出现的垂直间距。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FbU1Pb9uQuN2tGT6xrRYb%2Fgitbook_text_lineheight.png?alt=media&amp;token=cb2675d3-9397-4303-acd4-1acafa1b6267" alt=""><figcaption></figcaption></figure>

#### **步骤说明：**

{% stepper %}
{% step %}

#### 选择文本图层

{% endstep %}

{% step %}

#### 前往顶部栏并选择 <i class="fa-text">:text:</i> 按钮

{% endstep %}

{% step %}

#### 在与 <kbd><mark style="color:$primary;">字高<mark style="color:$primary;"></kbd>同一行，调整数值

你可以输入数值，或者水平点击并拖动以调整数值
{% endstep %}

{% step %}

#### 你可以实时看到文本以新尺寸更新

{% endstep %}
{% endstepper %}

***

## 对齐文本

使用水平和垂直对齐选项控制文本在文本框中的位置。对齐会影响所有文本内容相对于框边界的位置。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FWKEGsGzccXU2xTSBtZOd%2Fgitbook_text_align.png?alt=media&amp;token=449cff5a-3825-4008-801f-3e8727cba234" alt=""><figcaption></figcaption></figure>

#### 对齐选项

{% columns %}
{% column %}
**水平对齐**

* **左对齐**：将文本对齐到框架的左边缘
* **居中**：在框架内水平居中文本
* **右对齐**：将文本对齐到框架的右边缘
  {% endcolumn %}

{% column %}
**垂直对齐：**

* **顶端**：将文本对齐到框架的顶边缘
* **居中**：在框架内垂直居中文本
* **底部**：将文本对齐到框架的底边缘
  {% endcolumn %}
  {% endcolumns %}

#### **步骤说明：**

{% stepper %}
{% step %}

#### 选择文本图层

{% endstep %}

{% step %}

#### 前往顶部栏并选择 <i class="fa-align-left">:align-left:</i> 按钮

{% endstep %}

{% step %}

#### 在对齐弹出面板中，&#x20;

你可以输入数值，或者水平点击并拖动以调整数值
{% endstep %}

{% step %}

#### 你可以实时看到文本以新尺寸更新

{% endstep %}
{% endstepper %}

***

## 应用文本装饰

通过选择文本装饰样式来调整文本的外观，例如下划线或省略号截断，在文本样式之间切换（如大写、小写或首字母大写），并应用其他文本功能，以满足你的精确设计需求。

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FoG89HOlBXWYdROJnrPch%2Fgitbook_text_decoration.png?alt=media&amp;token=916ead5b-d858-4cb2-806d-d9629efa3e01" alt=""><figcaption></figcaption></figure>

#### **步骤说明：**

{% stepper %}
{% step %}

#### 选择文本图层

{% endstep %}

{% step %}

#### 前往顶部栏并选择 <i class="fa-sliders-simple">:sliders-simple:</i> 按钮

{% endstep %}

{% step %}

#### 在文本装饰弹出面板中，&#x20;

你可以点击以开启或关闭装饰选项
{% endstep %}
{% endstepper %}


---

# 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
