windows
This commit is contained in:
@@ -49,6 +49,7 @@ export default {
|
||||
{text: 'Linux踩坑日记', link: '/linux/linux'},
|
||||
{text: '学习使用Neovim', link: '/linux/01-nvim'},
|
||||
{text: 'Rime输入法', link: '/linux/02-rime'},
|
||||
{text: '使用Windows字体', link: '/linux/03-windows-fonts'},
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user