> 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
