Conversation
|
Thank you @silas229 ! We'll merge this once it passes. Appreciate the contribution! |
|
I haven't been able to solve the problem from the test yet either (this pr was still marked as a draft😅) But surely you're more familiar with fontist and could maybe figure that out (before the mention in setup-typst, I had never even heard of it, let alone programmed in ruby) |
|
The reason for the failure is this: $ bundle exec fontist create-formula https://download.gnu.org.ua/release/newcm/newcm-7.1.1.txz
Downloading: 100% (22/22 MiB), 2.72 MiB/s, done.
[Fontist::Errors::FontNotFoundError] No fonts found in archive. Only files with these extensions are processed: ttf, otf, ttc, otc, woff, woff2, dfontI think we are failing to unarchive the "txz" file which seems to be an "xz" that contains a "tar". It might be the case that in Excavate/Omnizip we are not using magic bytes to detect "xz" files? @HassanAkbar can you please help here? Thanks. |
|
@ronaldtse Looking into it, will keep you posted. |
|
@ronaldtse The |
|
@HassanAkbar it seems that we still have a failure on Ubuntu: (macOS and Windows both passed, but it seems that neither platform actually installs the font?) |
|
It's possible that some of the information in the file is incorrect. I'm not very familiar with this font stuff myself and created the file to the best of my knowledge. |
|
@silas229 the problem is actually on our side, we'll handle it. Thanks! |
|
@ronaldtse it looks like the generated formula in this PR may have the wrong font path: Could we regenerate this formula with Fontist? |
|
@HassanAkbar yes, please do so. We need to change the target base branch to "v5" as well. |
This PR adds support for installing New Computer Modern via Fontist.
New Computer Modern is one of the core fonts used by Typst. It is widely used throughout the official documentation and examples, making it a de facto standard font for many scientific Typst projects1.
At the same time, the GitHub Action
typst-community/setup-typstexplicitly documents Fontist as the recommended way to install fonts in CI environments2. However, New Computer Modern is currently not available through Fontist.Adding New Computer Modern to Fontist closes this gap and provides a smoother experience for users who:
typst-community/setup-typst+ Fontist).Benefits
Footnotes
https://typst.app/docs/guides/for-latex-users/#latex-look, https://typst.app/docs/reference/styling/, https://typst.app/docs/tutorial/formatting/ ↩
https://github.com/typst-community/setup-typst#installing-fonts-with-fontist ↩