gpt4 book ai didi

json - 无法在Windows终端中更改Face字体

转载 作者:行者123 更新时间:2023-12-02 23:06:46 24 4
gpt4 key购买 nike

通过settings.json试用Windows终端自定义。我发现一个profiles.json遵循新约定足够接近,可以将其粘贴到settings.json中,(我知道这样做是因为主题已更改)。问题是对“fontFace”的更改没有任何效果。我正在尝试将nerd字体用于某些电源线,可在ConEmu中运行的Powershell中使用,而不能在Windows Terminal中运行。这是settings.json的相关部分:

{
"$schema": "https://aka.ms/terminal-profiles-schema",

"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",

// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings

// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": false,

// If enabled, formatted data is also copied to your clipboard
"copyFormatting": false,

// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
// and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
"cursorShape": "vintage",
"fontFace": "Iosevka Nerd Font"
},
"list":
[
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false,
"fontFace": "Iosevka Nerd Font",
"colorScheme": "PowerShellTom",
"useAcrylic": true,
"acrylicOpacity": 0.8
},
{ ...

我在Windows Terminal Preview中得到了相同的行为,它应该是最少的“出血边缘”版本。

即使尝试为“fontFace”使用非 Nerd 字体也无效,但是,“fontSize”将起作用。

最佳答案

对于来自SCOTT HANSELMAN article (especially from the third step)的人

  • 为所有用户安装Cascadian Code

  • enter image description here
  • 像这样
  • 一样,在settings.json中更改“fontFace”属性

    enter image description here
    这是要复制的代码
    "profiles": {
    "defaults": {
    "fontFace": "Cascadian Code PL"
    // Put settings here that you want to apply to all profiles.
    }
    }

    这是我完成工作的唯一方法(2小时或尝试后)

    关于json - 无法在Windows终端中更改Face字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62462220/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com