-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to Iosevka v29.1.0, add naming overrides
- Loading branch information
Showing
5 changed files
with
98 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
[buildPlans.RyanMono] | ||
family = "Ryan Mono" | ||
spacing = "normal" | ||
serifs = "sans" | ||
noCvSs = false | ||
family = "Ryan Mono" | ||
spacing = "normal" | ||
serifs = "sans" | ||
noCvSs = false | ||
exportGlyphNames = true | ||
|
||
[buildPlans.RyanMono.variants] | ||
inherits = "ss05" | ||
|
||
[buildPlans.RyanMono.widths.Normal] | ||
shape = 600 | ||
menu = 5 | ||
css = "normal" | ||
menu = 5 | ||
css = "normal" | ||
|
||
[buildPlans.RyanMono.namingOverride] | ||
version = "%%version%%" | ||
copyright = "Copyright 2015-{{currentYear}}, Renzhi Li (aka. Belleve Invis, belleve@typeof.net). Copyright 2024-{{currentYear}}, Ryan Cao (hello@ryanccn.dev)." | ||
manufacturer = "Ryan Cao" | ||
designer = "Belleve Invis" | ||
description = "Ryan's homemade Iosevka build." | ||
urlVendor = "https://github.com/ryanccn/ryan-mono" | ||
urlDesigner = "https://typeof.net/Iosevka/" | ||
licence = "This font software is licenced under the SIL Open Font Licence, Version 1.1. This licence is available with a FAQ at: http://scripts.sil.org/OFL. This font software is distributed on an 'AS IS' basis, without warranties or conditions of any kind, either express or implied. See the SIL Open Font licence for the specific language, permissions and limitations governing your use of this font software." | ||
licenceURL = "https://openfontlicense.org/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
[buildPlans.RyanTerm] | ||
family = "Ryan Term" | ||
spacing = "term" | ||
serifs = "sans" | ||
noCvSs = false | ||
family = "Ryan Term" | ||
spacing = "term" | ||
serifs = "sans" | ||
noCvSs = false | ||
exportGlyphNames = true | ||
|
||
[buildPlans.RyanTerm.variants] | ||
inherits = "ss05" | ||
|
||
[buildPlans.RyanTerm.widths.Normal] | ||
shape = 600 | ||
menu = 5 | ||
css = "normal" | ||
menu = 5 | ||
css = "normal" | ||
|
||
[buildPlans.RyanTerm.namingOverride] | ||
version = "%%version%%" | ||
copyright = "Copyright 2015-{{currentYear}}, Renzhi Li (aka. Belleve Invis, belleve@typeof.net). Copyright 2024-{{currentYear}}, Ryan Cao (hello@ryanccn.dev)." | ||
manufacturer = "Ryan Cao" | ||
designer = "Belleve Invis" | ||
description = "Ryan's homemade Iosevka build." | ||
urlVendor = "https://github.com/ryanccn/ryan-mono" | ||
urlDesigner = "https://typeof.net/Iosevka/" | ||
licence = "This font software is licenced under the SIL Open Font Licence, Version 1.1. This licence is available with a FAQ at: http://scripts.sil.org/OFL. This font software is distributed on an 'AS IS' basis, without warranties or conditions of any kind, either express or implied. See the SIL Open Font licence for the specific language, permissions and limitations governing your use of this font software." | ||
licenceURL = "https://openfontlicense.org/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 36b1c056f544e5b87f835a92e0c97e0adb732f5b Mon Sep 17 00:00:00 2001 | ||
From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> | ||
Date: Sat, 6 Apr 2024 14:14:03 +0800 | ||
Subject: [PATCH] a | ||
|
||
--- | ||
packages/font/src/naming/index.mjs | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/packages/font/src/naming/index.mjs b/packages/font/src/naming/index.mjs | ||
index 161809f..f37bf0f 100644 | ||
--- a/packages/font/src/naming/index.mjs | ||
+++ b/packages/font/src/naming/index.mjs | ||
@@ -132,9 +132,9 @@ function setVersion(font, naming) { | ||
if (naming.version) { | ||
// Trim the "Version " prefix if it exists | ||
const versionString = naming.version.trim().replace(/^Version\s+/i, ""); | ||
- const ver = semver.parse(versionString); | ||
+ const ver = semver.parse(versionString.replace(/\.0+/g, '.')); | ||
if (!ver) throw new Error(`Version string ${naming.version} does not follow semver format`); | ||
- if (ver.minor > 99 || ver.patch > 99) throw new RangeError("Version number overflow"); | ||
+ // if (ver.minor > 99 || ver.patch > 99) throw new RangeError("Version number overflow"); | ||
|
||
// Set Name entry | ||
nameFont(font, Ot.Name.NameID.VersionString, `Version ${versionString}`); | ||
-- | ||
2.44.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[formatting] | ||
align_entries = true |