> For the complete documentation index, see [llms.txt](https://docs.tcmenu.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tcmenu.cc/gta5-cai-dan-jiao-cheng/2take1-jiao-cheng/2take1-zi-ding-yi-zi-ti.md).

# 2Take1自定义字体

**为了使用 2Take1 中的字体，您需要使用 Microsoft 的 MakeSpriteFont 工具将其转换为spritefont文件。**

// .\MakeSpriteFont "\<font>" \<file> /FontSize:\<size> /NoPremultiply /Sharp /defaultcharacter:0x2592 /characterregion:0x0-0xFF /characterregion:0x25A0 /characterregion:0x192 /characterregion:0x393 /characterregion:0x398 /characterregion:0x3A3 /characterregion:0x3A6 /characterregion:0x3A9 /characterregion:0x3B1 /characterregion:0x3B4-0x3B5 /characterregion:0x3C0 /characterregion:0x3C3-0x3C6 /characterregion:0x207F /characterregion:0x20A7 /characterregion:0x2219 /characterregion:0x221A /characterregion:0x221E /characterregion:0x2229 /characterregion:0x2248 /characterregion:0x2261 /characterregion:0x2264-0x2265 /characterregion:0x2310 /characterregion:0x2320 /characterregion:0x2321 /characterregion:0x2500 /characterregion:0x2502 /characterregion:0x250C /characterregion:0x2510 /characterregion:0x2514 /characterregion:0x2518 /characterregion:0x251C /characterregion:0x2524 /characterregion:0x252C /characterregion:0x2534 /characterregion:0x253C /characterregion:0x2550-0x256C /characterregion:0x2580 /characterregion:0x2584 /characterregion:0x2588 /characterregion:0x258C /characterregion:0x2590-0x2593 /characterregion:0x4E00-0x9FFF /fastpack

* **`<font>`– 字体名称。它必须已经安装在你的电脑上。**
* **`<file>`– 将创建的 spritefont 文件的名称。确保它有.spritefont扩展名。**

**您可以使用相同的字体但不同的大小创建不同的字体文件。**

// .\MakeSpriteFont "Microsoft YaHei UI" yahei\_24.spritefont /FontSize:24 /NoPremultiply /Sharp /defaultcharacter:0x2592 /characterregion:0x0-0xFF /characterregion:0x25A0 /characterregion:0x192 /characterregion:0x393 /characterregion:0x398 /characterregion:0x3A3 /characterregion:0x3A6 /characterregion:0x3A9 /characterregion:0x3B1 /characterregion:0x3B4-0x3B5 /characterregion:0x3C0 /characterregion:0x3C3-0x3C6 /characterregion:0x207F /characterregion:0x20A7 /characterregion:0x2219 /characterregion:0x221A /characterregion:0x221E /characterregion:0x2229 /characterregion:0x2248 /characterregion:0x2261 /characterregion:0x2264-0x2265 /characterregion:0x2310 /characterregion:0x2320 /characterregion:0x2321 /characterregion:0x2500 /characterregion:0x2502 /characterregion:0x250C /characterregion:0x2510 /characterregion:0x2514 /characterregion:0x2518 /characterregion:0x251C /characterregion:0x2524 /characterregion:0x252C /characterregion:0x2534 /characterregion:0x253C /characterregion:0x2550-0x256C /characterregion:0x2580 /characterregion:0x2584 /characterregion:0x2588 /characterregion:0x258C /characterregion:0x2590-0x2593 /characterregion:0x4E00-0x9FFF /fastpack

**确保文件具有.spritefont扩展名，并将其复制到以下目录。请记住，您必须先取消注入菜单（长按F12）,再重新注入才能看到新字体。**

// %appdata%\PopstarDevs\2Take1Menu\ui\fonts

**之后，你将能够为菜单 UI 的每个元素使用新字体。**


---

# 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.tcmenu.cc/gta5-cai-dan-jiao-cheng/2take1-jiao-cheng/2take1-zi-ding-yi-zi-ti.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.
