-
MotivationI am a maintainer of linuxbrew/homebrew-fonts. I got a proposal by @MikeMcQuaid proposed changing the place of homebrew-fonts (Homebrew/homebrew-linux-fonts#28). I propose merging it to homebrew-cask-fonts. I dream that we install the same fonts from the same repository by the same instruction between macOS and Linux like Homebrew. ProblemsFirst, I explain the four problems.
Philosophical problemA few years ago, Homebrew was a project only for macOS, but they changed their targets. They started to support Linux packages. Technical problemGenerally speaking, porting a package from macOS to Liunx is tricky because a machine architecture, a binary format, and everything are different. The early version of cask treated with dmg package, which is a special format for macOS and contains binary files run on the macOS. This case is the most difficult situation to port to Linux. However, porting font is not so hard because this is a zip file or tarball. Furthermore, the binary format is standardized in TTF and OTF. For our purpose, changing a font location is enough to port. Therefore, there is no technical problem. Resource problemI know the resource is limited. Thus, We need to focus on one target. Legal problemThis is perhaps the most serious problem of the four problems. Most of the fonts are licensed under the OSS Licenses, but a few fonts are not. ApproachI have a script to convert a cask file to a formula. I am running this script daily. NoteFour years ago, I was impressed with this repository for convenience and launched a fork named linuxbrew-fonts. Thanks to the many contributions, I could keep the latest formulas, and the contributors told me the importance of equality to install the package as the same as macOS. Two years ago, I was excited to merge the linuxbrew formulas to homebrew formulas. The equality of packages is more important than before. I propose connecting my work to your repository for equality with my respect to your work. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 33 replies
-
Thanks for the write-up @tani! I'm interested in @Homebrew/cask and particularly @vitorgalvao's thoughts here. One thought of my own when reading this: what's the advantage of a Cask for fonts over a Formula? Are the Casks e.g. installed into my macOS fonts whereas a Formula would require a manual intervention? |
Beta Was this translation helpful? Give feedback.
-
If formulae can unpack files directly to
In casks we had support for licenses (it was specifically was introduced because of fonts). I disliked that because it was the number one cause of held-up PRs. It caused a bunch of extra effort and an increased backlog for zero benefit. We eventually got rid of it. We only download the fonts; I don’t necessarily agree it should be our responsibility to read and interpret their licenses (they change depending on context, e.g. personal VS commercial use). But I’m not opposed to licenses being there, I just don’t want to subject myself to that problem again.
These days, for a new font to be accepted it has to be exceptionally popular. All others are automatically handled by converting from the Google Fonts repo. See CONTRIBUTING for details. I should be possible to add your automations on top of that. Assuming fonts could be formulae on macOS, we could convert everything to fonts and use the same files for macOS and Linux, just changing the installation/symlinking directory depending on OS. Then slowly readd licenses. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your generous replys, @MikeMcQuaid and @vitorgalvao .
I understand your opinion. Respecting the license, e.g., personal VS commercial use, is user responsibility and not maintainers'.
Great. I will create a PR modifying a template to generate formulae simultaneously.
Okay. I will send several PRs to run my script on your workflows. I suspect this migration takes a bit of time. Phase 1: Updating a script to generate formulae from Google Fonts Then, the homebrew-cask-fonts contains two kinds of packages, i.e., formulae and casks.
After the integration, we can discuss the suitable package format for fonts like symlinking vs copying. If anyone has any consideration, tell me, please. |
Beta Was this translation helpful? Give feedback.
Thank you for your generous replys, @MikeMcQuaid and @vitorgalvao .
I understand your opinion. Respecting the license, e.g., personal…