# 如何使用自定义本地字体？

**URL:** https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210
**Category:** Support
**Created:** [2022年七月7日 14:16 UTC](https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210 "2022-07-07T14:16:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [2022年七月7日 14:16 UTC](https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210/1 "2022-07-07T14:16:29Z")

</div>

您好，

我看到有一个主题组件可以让我们为 Discourse 添加 Google 字体。

如果我想在本地添加一个 Google 字体库中没有的自定义字体，该怎么做？

如何操作？

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2022年七月7日 15:23 UTC](https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210/2 "2022-07-07T15:23:29Z")

</div>

请看：

> [@Include assets (e.g. images, fonts) in themes and components](https://meta.discourse.org/t/include-images-and-fonts-in-themes-and-components/62459):
>
> Themes and theme components allow you to handle uploaded assets such as images and fonts. You can control what assets your theme accepts using the site setting: theme authorized extensions Including assets in themes and components For remote themes Remote themes include: Themes and components installed from the Popular list of themes Themes and components installed using the From a git repository method To upload assets to a remote theme or theme component, see [Create and share a font theme …](https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462)

还有：

> [@Change the default font on your site](https://meta.discourse.org/t/how-to-change-default-font-of-your-site/21282):
>
> bookmark This guide explains how to change the default font on your Discourse site, either for specific elements or by using a font library other than Google Fonts. person_raising_hand Required user level: Administrator information_source This guide is only needed if you want to integrate with a font library other than Google Fonts or to change the font of only some elements of the site. If you are using Google Fonts and want to change the font globally across your site, try out this …

---

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [2022年七月7日 16:00 UTC](https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210/3 "2022-07-07T16:00:55Z")

</div>

好的，非常感谢 🙂

---

<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: [2022年八月6日 16:01 UTC](https://meta.discourse.org/t/how-do-i-use-custom-local-fonts/232210/4 "2022-08-06T16:01:32Z")

</div>

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