通过 settings.json 尝试 Windows 终端自定义。我发现了一个profiles.json,它在粘贴到settings.json 时足够紧密地遵循新的约定,(我知道这是因为主题改变了)。问题是对“fontFace”的更改没有任何效果。我正在尝试为一些电力线的东西使用书呆子字体,在 ConEmu 中运行的 Powershell 中工作,但在 Windows 终端中不工作。这是 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”尝试非书呆子字体也没有效果,但是,“fontSize”会起作用。