ietf-tools / xml2rfc-fonts

BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Just use package.json + dependabot? #2

Open larseggert opened 1 year ago

larseggert commented 1 year ago

Couldn't you just have dependabot update the fonts based on package.json, instead of needing custom GitHub actions?

kesara commented 1 year ago

I see a few issues with using package.json for this. We have to use something like fontsource to get the fonts, but these are webfonts that are meant to be used with CSS by importing the fonts. I'm not sure that we can download TrueType fonts this way.

Another issue is we have to maintain a list of fonts for different languages (For example fontsource/noto-sans-myanmar, fontsource/noto-sans-sinhala, etc.), and we will miss out on any new font variations they introduce since we have to import each font set by name.

Using the GitHub repository for Noto fonts is the recommended way for a distributor looking to download and package the entire Noto collection [1].

Since we only need Noto and Roboto mono fonts we just have to get fonts from two git repositories. The exception is that noto-emojis is a separate project.

[1] https://notofonts.github.io/