fix: modify font

This commit is contained in:
2024-11-06 18:01:38 +08:00
parent 6ac8de0999
commit efdbffa489
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -18,7 +18,7 @@
<key>ASCII Anti Aliased</key> <key>ASCII Anti Aliased</key>
<true/> <true/>
<key>ASCII Ligatures</key> <key>ASCII Ligatures</key>
<false/> <true/>
<key>Ambiguous Double Width</key> <key>Ambiguous Double Width</key>
<false/> <false/>
<key>Ansi 0 Color</key> <key>Ansi 0 Color</key>
@@ -1265,11 +1265,11 @@
<key>Name</key> <key>Name</key>
<string>Default</string> <string>Default</string>
<key>Non Ascii Font</key> <key>Non Ascii Font</key>
<string>FiraCodeNFM-Reg 22</string> <string>Sarasa-Fixed-SC-Nerd-Font-Regular 16</string>
<key>Non-ASCII Anti Aliased</key> <key>Non-ASCII Anti Aliased</key>
<true/> <true/>
<key>Normal Font</key> <key>Normal Font</key>
<string>FiraCode-Regular 16</string> <string>FiraCode-Regular 15</string>
<key>Option Key Sends</key> <key>Option Key Sends</key>
<integer>0</integer> <integer>0</integer>
<key>Prompt Before Closing 2</key> <key>Prompt Before Closing 2</key>
+2 -2
View File
@@ -76,7 +76,7 @@ def refresh_font_cache() -> None:
def main() -> None: def main() -> None:
fonts: Dict[str, str] = { fonts: Dict[str, str] = {
"FiraCodeNerd": "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip", "SarasaNerd":"https://github.com/jonz94/Sarasa-Gothic-Nerd-Fonts/releases/download/v1.0.23-0/sarasa-fixed-sc-nerd-font.zip",
"FiraCode": "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip" "FiraCode": "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip"
} }
@@ -94,7 +94,7 @@ def main() -> None:
download_file(fonts[font], zip_path) download_file(fonts[font], zip_path)
unzip_file(zip_path, font) unzip_file(zip_path, font)
install_font(font, font_dir) install_font(font, font_dir)
# os.remove(zip_path) os.remove(zip_path)
refresh_font_cache() refresh_font_cache()
print("安装完成。请重启您的终端或应用程序以使用新字体。") print("安装完成。请重启您的终端或应用程序以使用新字体。")