From 9e0dc4220024d20ab881369823e43b9566c8f625 Mon Sep 17 00:00:00 2001
From: yuzh <46953451+yuzh0816@users.noreply.github.com>
Date: Tue, 8 Oct 2024 23:34:58 +0800
Subject: [PATCH] Modify docs to improve readability.
---
docs/docs/documentation/faq/custom-font.md | 12 ++++--------
docs/docs/zh/documentation/faq/custom-font.md | 12 ++++--------
2 files changed, 8 insertions(+), 16 deletions(-)
diff --git a/docs/docs/documentation/faq/custom-font.md b/docs/docs/documentation/faq/custom-font.md
index 7b8f650fd..4d379e682 100644
--- a/docs/docs/documentation/faq/custom-font.md
+++ b/docs/docs/documentation/faq/custom-font.md
@@ -1,6 +1,6 @@
# How to use Custom Font
-Here is the `App.axaml` after creating the SukiUI project:
+Here is the `App.axaml` after creating your SukiUI project:
```xml
```
-Assuming that there exists a font file `Assets/MiSans-Bold.ttf` and set the build action of that to `AvaloniaResource`
+Assuming that there exists a font file `Assets/FontName-xxx.ttf` and set the build action of that to `AvaloniaResource`
Then replace the `DefaultFontFamily` with your font:
@@ -37,7 +37,7 @@ Then replace the `DefaultFontFamily` with your font:
// [!code highlight]
// [!code highlight]
- avares://SukiTest/Assets/MiSans-Bold.ttf#MiSans // [!code highlight]
+ avares://YourProject/Assets#FontName // [!code highlight]
// [!code highlight]
// [!code highlight]
@@ -49,8 +49,4 @@ Then replace the `DefaultFontFamily` with your font:
-```
-
-::: tip
-`#MiSans` is not the same in other font files, you can use a program like `Windows Font Viewer` to see the font name
-:::
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/docs/zh/documentation/faq/custom-font.md b/docs/docs/zh/documentation/faq/custom-font.md
index c97f9d36a..8f29fee0b 100644
--- a/docs/docs/zh/documentation/faq/custom-font.md
+++ b/docs/docs/zh/documentation/faq/custom-font.md
@@ -1,6 +1,6 @@
# 如何使用自定义字体
-以下是创建一个新的 SukiUI 项目后的 `App.axaml` 文件:
+以下是创建一个新的基于 SukiUI 项目后的 `App.axaml` 文件:
```xml
```
-假设存在一个字体文件 `Assets/MiSans-Bold.ttf`,并将其构建行为设置为 `AvaloniaResource`
+假设存在一组字体文件 `Assets/FontName-xxx.ttf`,并将其构建行为设置为 `AvaloniaResource`
然后替换 `DefaultFontFamily` 为你的字体:
@@ -37,7 +37,7 @@
// [!code highlight]
// [!code highlight]
- avares://SukiTest/Assets/MiSans-Bold.ttf#MiSans // [!code highlight]
+ avares://YourProject/Assets#FontName // [!code highlight]
// [!code highlight]
// [!code highlight]
@@ -49,8 +49,4 @@
-```
-
-::: tip
-`#MiSans` 在其他字体中的名称都不一样,你可以使用类似 `Windows 字体查看器` 等软件查看字体名称
-:::
\ No newline at end of file
+```
\ No newline at end of file