-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide machine readable metadata for fonts #1578
Comments
Thanks for the suggestion. This sounds useful and not too hard 👍 |
Do you have an idea how to express a SIL with RFN as SPDX? Just |
SO. Needed to finish the release first ;-) I believe this is a very good idea. We here also 'pack' the Nerd Font release, as Cask, and for that
In principle the shas could be calculated earlier in the release process - when the archives are created we have them and calculating the checksum would be a breeze. There is other 'metadata' that is strewn around in the repo, which I really hate: the Your examples: Thank you for providing the direct insight. |
Alpine uses sha512 😬 I believe for
1, 2, and 3 (implicitely) are already in {
"unpatchedName": "Bitstream Vera Sans Mono",
"RFN": true,
"version": "1.1",
"patchedName": "BitstromWera",
"folderName": "BitstreamVeraSansMono",
"imagePreviewFont": "BitstromWera Nerd Font",
"imagePreviewFontSource": "BitstreamVeraSansMono/Regular/VeraMono.ttf",
"linkPreviewFont": "bitstream-vera",
"caskName": "bitstream-vera-sans-mono",
"repoRelease": true,
"description": "Dotted zero, compact lowercase characters"
},
|
Thanks for pointing out fonts.json - I wasn't aware of that and didn't look outside of the repo root. I think if the license expression is added there, the only bit missing is the checksum. I'm fine with that being missing though, that is something I can easily generate myself if necessary. If no one else has capacity to add the SPDX expressions, I can probably do that, but only towards the summer. My next three months are packed. |
[why] It can be hard to find out which license a particular font is using. Therefore we add a new field to the fonts.json with an SPDX license identifier (if possible). [how] For fonts with a license that has no SPDX identifier we use a free `LicenseRef-*` identifier, but that reference is not solved in the fonts.json file. [note] Also correct some licensing info given in the license audit. Related: #1578 Suggested-by: Jan Christian Gruenhage <[email protected]> Signed-off-by: Fini Jastrow <[email protected]>
Well, my time is also overbooked by a factor of 3 ;-D Whatever, maybe you @jcgruenhage can have a quick look at the PR and check if it is useful. For special licenses (which have no identifier in the SPDX table) I added something along these lines: @@ -834,6 +898,7 @@
},
{
"unpatchedName": "Ubuntu Sans",
+ "licenseId": "LicenseRef-UbuntuFont",
"RFN": false,
"version": "1.004",
"patchedName": "UbuntuSans", i.e. I added a |
[why] It can be hard to find out which license a particular font is using. Therefore we add a new field to the fonts.json with an SPDX license identifier (if possible). [how] For fonts with a license that has no SPDX identifier we use a free `LicenseRef-*` identifier, but that reference is not solved in the fonts.json file. [note] Also correct some licensing info given in the license audit. Related: #1578 Suggested-by: Jan Christian Gruenhage <[email protected]> Signed-off-by: Fini Jastrow <[email protected]>
[why] It can be hard to find out which license a particular font is using. Therefore we add a new field to the fonts.json with an SPDX license identifier (if possible). [how] For fonts with a license that has no SPDX identifier we use a free `LicenseRef-*` identifier, but that reference is not solved in the fonts.json file. [note] Also correct some licensing info given in the license audit. Related: #1578 Suggested-by: Jan Christian Gruenhage <[email protected]> Signed-off-by: Fini Jastrow <[email protected]>
Well, I merged #1599, and set this to solved for the time being. We can improve at any time. |
@Finii thanks! |
Fixes: ryanoasis#1578 Signed-off-by: Fini Jastrow <[email protected]>
Fixes: ryanoasis#1578 Signed-off-by: Fini Jastrow <[email protected]>
The next release (i.e. 3.2.1) will come with a checksum file, hope that helps: with content similar to this (here the release contained just 3 fonts to make the test faster) Any comment @jcgruenhage ? Thank you! |
Fixes: #1578 Signed-off-by: Fini Jastrow <[email protected]>
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
Requirements
Is your feature request related to a problem? Please describe.
I'm currently working on packaging nerd-fonts for a Linux distribution. Right now, packaging nerd-fonts means I have to maintain a list of the fonts myself, check the licenses for the fonts from different places in your docs. Other distros are duplicating a lot of work here as well, and most of them could probably benefit from metadata being provided as well.
Examples of other Distros maintaining lists:
Describe the solution you'd like
It would be immensely helpful for me, and probably other distros as well, if there was a json/csv/whatever file attached as a release artifact, that contained few fields for each font. The fields I've gathered from looking at the other distros packaging nerd-fonts are:
Describe alternatives you've considered
A lot of manual labor downstream for each distro that packages nerd-fonts. That's what's happening at the moment.
Additional context
None
The text was updated successfully, but these errors were encountered: