{"id":15594617,"url":"https://github.com/innei/windows-fonts","last_synced_at":"2025-04-19T17:22:16.845Z","repository":{"id":214440694,"uuid":"736534469","full_name":"Innei/windows-fonts","owner":"Innei","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-02T17:54:25.000Z","size":32798,"stargazers_count":45,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T10:45:30.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Innei.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-28T06:58:58.000Z","updated_at":"2025-02-22T03:25:32.000Z","dependencies_parsed_at":"2023-12-28T08:27:20.187Z","dependency_job_id":"bd8943eb-6489-4764-83d0-cfcf62f3e906","html_url":"https://github.com/Innei/windows-fonts","commit_stats":null,"previous_names":["innei/windows-fonts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fwindows-fonts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fwindows-fonts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fwindows-fonts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fwindows-fonts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/windows-fonts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174503,"owners_count":20735413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T00:41:13.168Z","updated_at":"2025-03-29T10:46:08.725Z","avatar_url":"https://github.com/Innei.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows 11 全局替换微软雅黑到苹方\r\n\r\n最近，某宝入手了一台 MATX 整机。然后装上了 Windows 11 系统。我自从高三之后就没这么用过 Windows 了，过了这么多年 Windows 的垃圾字体居然还没换。丑一批的雅黑和系统的字体渲染真的是一言难尽。即便是 4K 屏开 150% 缩放也就不回来字体太丑的问题。我决定把雅黑换成苹方。\r\n\r\n关于如何提取苹方字体，请移步：[新版 macOS 苹方字体的提取移植与下载](https://blog.dsrkafuu.net/post/2020/extract-sf-pingfang/)\r\n\r\n## 前置工具\r\n\r\n首先下载大佬已经提取好的苹方字体，一般来说，macOS 中内置的苹方是加密，并不能直接在 Windows 上使用，这里直接用做好的字体就行。\r\n\r\n然后需要 TTC 字体工具，用来提取雅黑的字体信息，和修改苹方字体的信息，最后重新合并为一个 TTC。\r\n\r\n这里用到的工具：\r\n\r\n- ttfname3+\r\n- UniteTTC\r\n- 字体替换工具\r\n\r\n我把这些工具~~和成品雅黑苹方字体~~放下面分享链接了。\r\n\r\n你可以略过教程，直接到字体替换章节。\r\n\r\n不好意思，阿里云盘不让分享字体，自己动手丰衣足食。工具都在这了。\r\n\r\nhttps://www.alipan.com/s/UmanLDu262z\r\n\r\n::: warning\r\n开始之前，请一定要备份原本的字体。\r\n:::\r\n\r\n## 过程\r\n\r\n这里以替换微软雅黑为例，但事实上你还需要操作微软雅黑 Light 和雅黑 Bold。但是过程是一样的这里就不多展开，重复操作就行。\r\n\r\n下载好大佬提取的 `PingFang.ttc` 之后，首先需要拆分 ttc 到 ttf。第一步，把 `PingFang.ttc` 拖到 `UniteTTC.exe` 上，或者直接在命令行输入 UniteTTC.exe PingFang.ttc 也可以。\r\n\r\n这时候会生成很多个 `PingFang00x.ttf` 文件。\r\n\r\n![](https://cdn.jsdelivr.net/gh/Innei/fancy-2023@main/2023/1217142905.png)\r\n\r\n我们选取其中一个，常规体，苹方-简，这个可以通过打开文件查看。\r\n\r\n然后拖动到 `ttfname3+.exe` 上，会生成一个 `PingFang00x.xml`。\r\n\r\n对系统的雅黑也进行同样的操作。\r\n\r\n现在比较重要的一步，用编辑器打开` PingFang00x.xm`l 和雅黑的 `msyh00x.xml` 进行编辑。\r\n\r\n复制 `PingFang00x.xml` 的 `Header` Tag，粘贴到 `msyh00x.xml` 上。\r\n\r\n![](https://cdn.jsdelivr.net/gh/Innei/fancy-2023@main/2023/1217142928.png)\r\n\r\n这里需要操作两次，一个是 `msyh001.xml` 一个 `msyh002.xml`。第一个是雅黑第二个是雅黑 UI。\r\n\r\n然后之后，把 msyh001.xml 和提取的 `PingFang00x.ttf` 同时选中然后拖到 `ttfname3+.exe` 上，会生成一个 `msyh001_mod.TTF`，需要做两次，得到 `msyh001_mod.TTF` 和 `msyh002_mod.TTF`。\r\n\r\n然后打开命令行，使用 `UniteTTC.exe msyh_pingfang.ttc msyh001_mod.TTF msyh002_mod.TTF` 合并到 `msyh_pingfang.ttc`。\r\n\r\n![](https://cdn.jsdelivr.net/gh/Innei/fancy-2023@main/2023/1217142959.png)\r\n\r\n这里字体就做好了。\r\n\r\n然后打开字体替换工具。\r\n\r\n重启搞定。\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fwindows-fonts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fwindows-fonts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fwindows-fonts/lists"}