【问题标题】:Powerline Fonts Not coming in VSCodeVSCode 中没有电力线字体
【发布时间】:2021-11-29 06:02:06
【问题描述】:

我在我的 zsh (Ubuntu) 中安装了 Powerline10k。但是字体没有出现在 VSCode 中。 它以前出现过,但在将 VScode 与我的 Windows 同步后,我认为设置可能是混乱的。

如您所见,字体已加载,但符号未加载。

我在 VSCode 中的 settings.json。

我也安装了 Menlo 字体:

我尝试将字体更改为 Meslo 相同的问题。清除字体缓存:

 sudo fc-cache -vf /usr/share/fonts

还是同样的问题。

使用 p10 configure 重新配置 p10k。问题依然存在。

我错过了什么吗?

门洛存在:

fc-list | grep -i "Menlo"


/home/sss/.fonts/Menlo Italic for Powerline.ttf: Menlo for Powerline:style=Italic
/home/sss/.local/share/fonts/Menlo Bold Italic for Powerline.ttf: Menlo for Powerline:style=Bold Italic
/usr/share/fonts/Menlo-for-Powerline/Menlo for Powerline.ttf: Menlo for Powerline:style=Regular
/home/sss/.fonts/Menlo Bold Italic for Powerline.ttf: Menlo for Powerline:style=Bold Italic
/home/sss/.fonts/Menlo for Powerline.ttf: Menlo for Powerline:style=Regular
/usr/share/fonts/Menlo-for-Powerline/Menlo Bold Italic for Powerline.ttf: Menlo for Powerline:style=Bold Italic
/home/sss/.local/share/fonts/Menlo Bold for Powerline.ttf: Menlo for Powerline:style=Bold
/usr/share/fonts/Menlo-for-Powerline/Menlo Bold for Powerline.ttf: Menlo for Powerline:style=Bold
/usr/share/fonts/Menlo-for-Powerline/Menlo Italic for Powerline.ttf: Menlo for Powerline:style=Italic
/home/sss/.fonts/Menlo Bold for Powerline.ttf: Menlo for Powerline:style=Bold

任何帮助将不胜感激。

【问题讨论】:

    标签: visual-studio-code


    【解决方案1】:

    根据我的经验,您不需要为带有空格的字体添加额外的单引号。 例如你可以这样做:

    "terminal.integrated.fontFamily": "Menlo for Powerline"
    

    代替:

    "terminal.integrated.fontFamily": "'Menlo for Powerline'"
    

    【讨论】:

    • 是的,也试过了。不会改变任何东西。
    猜你喜欢
    • 1970-01-01
    • 2020-07-07
    • 1970-01-01
    • 1970-01-01
    • 2021-02-06
    • 1970-01-01
    • 2021-01-31
    • 2019-10-14
    • 2017-09-02
    相关资源
    最近更新 更多