提问人:RAIDEV 提问时间:10/7/2023 更新时间:10/7/2023 访问量:51
可以安装 Victor mono font un a WSL 吗?
Can be possible install Victor mono font un a WSL?
问:
我是新手,希望有人能帮我
我尝试在 Windows 的 wsl 中从终端中的 caché 安装字体。我已经在 Windows 中安装了该字体,但 wsl 没有。
我试过 Apt-caché search Victor Mono
但它不起作用,而使用 roboto 它可以。
答:
-1赞
Nguyễn Hoàng Tân
10/7/2023
#1
在 WSL 中安装字体(适用于 Linux 的 Windows 子系统)Installing a Font in WSL (Windows Subsystem for Linux)
若要在 WSL 中安装字体,请按照下列步骤操作:
检查字体位置:确认字体文件(例如 VictorMono.ttf)位于可从 WSL 实例访问的目录中。为简单起见,可以将字体文件复制到 WSL 主目录。
安装字体:可以使用该命令更新 WSL 中的字体缓存并使字体可用。在 WSL 实例中打开终端并运行以下命令:
fc-cache
sudo cp /mnt/c/path/to/VictorMono.ttf /usr/local/share/fonts/ sudo fc-cache -fv
请注意,当你在 WSL 中工作时,这是 Windows 中 C: 驱动器的路径。
/mnt/c
验证安装:可以通过在 WSL 终端中运行以下命令来验证字体是否已安装:
fc-list | grep "Victor Mono"
希望这能帮到你!
评论