This commit is contained in:
2025-12-12 09:32:19 +08:00
parent a4b972617a
commit 5c2f31b80b
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@ export default {
{text: 'Linux踩坑日记', link: '/linux/linux'}, {text: 'Linux踩坑日记', link: '/linux/linux'},
{text: '学习使用Neovim', link: '/linux/01-nvim'}, {text: '学习使用Neovim', link: '/linux/01-nvim'},
{text: 'Rime输入法', link: '/linux/02-rime'}, {text: 'Rime输入法', link: '/linux/02-rime'},
{text: '使用Windows字体', link: '/linux/03-windows-fonts'},
] ]
} }
], ],
+24
View File
@@ -0,0 +1,24 @@
---
layout: doc
---
# Ubuntu 下使用 Windows 字体
适用于双系统或有 Windows 分区的情况,可直接使用原系统字体。
步骤 1:创建字体目录
```shell
sudo mkdir /usr/share/fonts/truetype/windows-font
```
步骤 2:拷贝 Windows 字体文件 从 C:\Windows\Fonts 拷贝所需 .ttf 或 .ttc 文件到新目录:
这里需要替换一下windows目录
```shell
sudo cp /media/xiaoshuai/Windows/Windows/Fonts/* /usr/share/fonts/truetype/windows-font
```
步骤 3:修改权限并更新缓存
```shell
sudo chmod -R 755 /usr/share/fonts/truetype/windows-font
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
```