Skip to content

Commit

Permalink
fix unique name
Browse files Browse the repository at this point in the history
  • Loading branch information
laishulu committed Nov 3, 2024
1 parent 829f553 commit eefe6af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fonts`合并入`Sarasa Term SC`, 再经过一些后处理,而最后形成的
- MacOS 用户可以直接通过 cask 安装:
```sh
brew tap laishulu/homebrew
brew install --cask font-sarasa-nerd
brew install font-sarasa-nerd
```
- 手工下载安装:
- 前往 [release](https://github.com/laishulu/Sarasa-Term-SC-Nerd/releases) 下载
Expand Down
2 changes: 1 addition & 1 deletion scripts/font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ class font_patcher:
subFamily = self.get_subfamily()
font.fullname = f"{looseName} {en_subfamily(subFamily)}"
font.fontname = f"{compactName}-{subFamily}"
uniqueID = f"{font.fullname}; Sarasa v{self.sourceFont.version}; Nerd v{version}"
uniqueID = f"{font.fullname}; Sarasa v{self.sourceFont.version}"

font.appendSFNTName(str("English (US)"), str("UniqueID"), uniqueID)
font.appendSFNTName(str("Chinese (PRC)"), str("UniqueID"), uniqueID)
Expand Down
4 changes: 2 additions & 2 deletions scripts/font-patcher.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/font-patcher b/font-patcher
index 7c57aeb..1f976b6 100755
index 7c57aeb..96cd6e4 100755
--- a/font-patcher
+++ b/font-patcher
@@ -13,6 +13,14 @@ projectName = "Nerd Fonts"
Expand Down Expand Up @@ -120,7 +120,7 @@ index 7c57aeb..1f976b6 100755
+ subFamily = self.get_subfamily()
+ font.fullname = f"{looseName} {en_subfamily(subFamily)}"
+ font.fontname = f"{compactName}-{subFamily}"
+ uniqueID = f"{font.fullname}; Sarasa v{self.sourceFont.version}; Nerd v{version}"
+ uniqueID = f"{font.fullname}; Sarasa v{self.sourceFont.version}"
+
+ font.appendSFNTName(str("English (US)"), str("UniqueID"), uniqueID)
+ font.appendSFNTName(str("Chinese (PRC)"), str("UniqueID"), uniqueID)
Expand Down

0 comments on commit eefe6af

Please sign in to comment.