# 最近更新后，网站默认字体从 Arial 更改为 Serif

**URL:** <https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162>\
**Category:** Support\
**Created:** [2021年七月14日 19:53 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162 "2021-07-14T19:53:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2021年七月14日 19:53 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162/1 "2021-07-14T19:53:17Z")

</div>

上周（也可能是前一周）更新后，网站的默认字体已从 Arial 变为默认的衬线字体。网站为原生版本，插件很少，主题也是开箱即用的默认主题，且未对 CSS 进行任何修改。

尝试在设置中更改字体没有效果。我的网站之前也发生过类似情况，当时通过 @pmusaraj 在此处提到的操作得以解决：

[https://meta.discourse.org/t/the-system-font-changed-from-arial-to-times-new-roman-after-updating/195478](https://meta.discourse.org/t/the-system-font-changed-from-arial-to-times-new-roman-after-updating/195478)

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2021年七月14日 20:32 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162/2 "2021-07-14T20:32:06Z")

</div>

你好，

请尝试重新构建您的 Discourse。此方法此前已帮助其他用户解决了类似问题。

`./launcher rebuild app`

---

<div class="post-metadata">

**Author:** ![Amicable](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amicable/32/68902_2.png) [@Amicable](https://meta.discourse.org/u/Amicable)\
**Post date:** [2021年七月14日 21:06 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162/3 "2021-07-14T21:06:36Z")

</div>

谢谢，是的，我看到了那个变通方法。但我接下来几周都无法访问我的服务器来操作这个 😿

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2021年七月14日 21:17 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162/4 "2021-07-14T21:17:47Z")

</div>

您可以手动添加 CSS 以加载字体，直到您有机会重新构建。

您可以使用类似以下内容：

```plaintext
:root {
  --font-family: Arial, sans-serif;
  --heading-font-family: Arial, sans-serif;
}

```

若要恢复为 Arial，请前往 `admin/customize/themes`，并在您的当前主题下的“通用” \> “CSS”中添加上述代码。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年八月13日 21:18 UTC](https://meta.discourse.org/t/site-default-font-changed-from-arial-to-serif-after-recent-update/197162/5 "2021-08-13T21:18:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
