Rename D2Coding to D2Koding (RFN license)

[why]
When we added D2Coding we did not correctly determine the license and
worked as if it was OFL-1.1-no-RFN, but in fact it has an RFN clause and
is OFL-1.1-RFN.

So we need to rename the font when it is patched.

[how]
This commit expands the SIL_TABLE in the `font-patcher` so that any
patching substitutes `D2Coding` with `D2Koding`.

Related discussion with upstream:
https://github.com/ryanoasis/nerd-fonts/discussions/1968#discussioncomment-17807000

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2026-07-31 21:39:57 +02:00
parent b7b85b75c5
commit b2912110b3
4 changed files with 6 additions and 5 deletions

View file

@ -273,11 +273,11 @@
{
"unpatchedName": "D2Coding",
"licenseId": "OFL-1.1-RFN",
"RFN": false,
"RFN": true,
"version": "1.3.2",
"patchedName": "D2CodingLigature",
"patchedName": "D2KodingLigature",
"folderName": "D2Coding",
"imagePreviewFont": "D2CodingLigature Nerd Font",
"imagePreviewFont": "D2KodingLigature Nerd Font",
"imagePreviewFontSource": "D2Coding/D2Coding-Ver1.3.2-20180524-ligature.ttf",
"linkPreviewFont": "d2coding",
"caskName": "d2coding",

View file

@ -193,6 +193,7 @@ class FontnameTools:
( '(b)itstream( ?)(v)era( ?sans ?mono)?', r'\1itstrom\2Wera' ),
( '(c)ascadia( ?)(c)ode', r'\1askaydia\2\3ove' ),
( '(c)ascadia( ?)(m)ono', r'\1askaydia\2\3ono' ),
( '(d2)( ?)coding(.*)', r'\1\2Koding\3' ),
( 'Gohufont', r'GohuFont'), # Correct to CamelCase
( '(h)ermit', r'\1urmit' ),
( '(h)asklig', r'\1asklug' ),

View file

@ -5,7 +5,7 @@ This project is using [Semantic Versioning 2.0.0](http://semver.org/)
## v3.5.0 (to be released)
### Breaking
- D2Coding is renamed to D2Code
- D2Coding is renamed to D2Koding #2052
### Fonts
- Add Annotation Mono #2049

View file

@ -136,7 +136,7 @@ A preview of all fonts can be found [here](https://www.nerdfonts.com/font-downlo
| [ComicShannsMono Nerd Font][p-comic] | [Comic Shanns Mono][f-comic] | 1.3.2 | NO |
| [CommitMono Nerd Font][p-commit] | [Commit Mono][f-commit] | 1.143 | NO |
| [Cousine Nerd Font][p-cousine] | [Cousine][f-cousine] | 1.241 | NO |
| [D2Coding Nerd Font][p-d2coding] | [D2Coding][f-d2coding] | 1.3.2 | YES |
| [D2Koding Nerd Font][p-d2coding] | [D2Coding][f-d2coding] | 1.3.2 | YES |
| [DaddyTimeMono Nerd Font][p-daddytimemono] | [DaddyTimeMono][f-daddytimemono] | 1.2.3 | NO |
| [DepartureMono Nerd Font][p-departuremono] | [Departure Mono][f-departuremono] | 1.500 | NO |
| [DejaVuSansMono Nerd Font][p-dejavu] | [DejaVu][f-dejavu] | 2.37 | NO |