Open source CapCut alternative.
TypeScript
feat(site): add Antonio Bold to the Cut fonts [rebuild]
David Le70895fbf21c2
diff --git a/site/package-lock.json b/site/package-lock.jsonindex 06b8552f..5b01182a 100644--- a/site/package-lock.json+++ b/site/package-lock.json@@ -29,6 +29,7 @@"@elevenlabs/elevenlabs-js": "^2.49.1","@fontsource/amatic-sc": "^5.3.0","@fontsource/anton": "^5.3.0",+ "@fontsource/antonio": "^5.3.0","@fontsource/archivo-black": "^5.3.0","@fontsource/bangers": "^5.3.0","@fontsource/bebas-neue": "^5.3.0",@@ -2172,6 +2173,15 @@"url": "https://github.com/sponsors/ayuhito"}},+ "node_modules/@fontsource/antonio": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@fontsource/antonio/-/antonio-5.3.0.tgz",+ "integrity": "sha512-LB0XN3BDXKLWsHaR9qouHKGs6PT7NhVmIOPv+a3Kv8UpZSZs67lLH7vX99pOXE0v0rh9bToJQWqvO6X0fiVKxA==",+ "license": "OFL-1.1",+ "funding": {+ "url": "https://github.com/sponsors/ayuhito"+ }+ },"node_modules/@fontsource/archivo-black": {"version": "5.3.0","resolved": "https://registry.npmjs.org/@fontsource/archivo-black/-/archivo-black-5.3.0.tgz",diff --git a/site/package.json b/site/package.jsonindex 65df0a14..2177eb5d 100644--- a/site/package.json+++ b/site/package.json@@ -70,6 +70,7 @@"@elevenlabs/elevenlabs-js": "^2.49.1","@fontsource/amatic-sc": "^5.3.0","@fontsource/anton": "^5.3.0",+ "@fontsource/antonio": "^5.3.0","@fontsource/archivo-black": "^5.3.0","@fontsource/bangers": "^5.3.0","@fontsource/bebas-neue": "^5.3.0",diff --git a/site/src/cut/lib/fixtures/condensed-bold-alive.webp b/site/src/cut/lib/fixtures/condensed-bold-alive.webpnew file mode 100644index 00000000..8000483dBinary files /dev/null and b/site/src/cut/lib/fixtures/condensed-bold-alive.webp differdiff --git a/site/src/cut/lib/fontMatch.test.ts b/site/src/cut/lib/fontMatch.test.tsindex 8193eac1..541636fa 100644--- a/site/src/cut/lib/fontMatch.test.ts+++ b/site/src/cut/lib/fontMatch.test.ts@@ -181,4 +181,14 @@ describe("faces off a reference frame", () => {expect(ranked[0].score).toBeGreaterThanOrEqual(good);expect(ranked.find((m) => m.font !== "prompt")!.score).toBeLessThan(good);});++ test("a lyric template's tall condensed word matches Antonio Bold", async () => {+ // "ALIVE" in red over pink, 280 px of a 720 px frame. Before Antonio was+ // bundled the closest face was Anton at 0.716, and only at a tracking+ // tight enough to run its letters into each other.+ const ranked = await rankFaces(await frameInk("condensed-bold-alive.webp"), "ALIVE", catalog, fontStack);+ expect(ranked[0]).toMatchObject({ font: "antonio", weight: 700 });+ expect(ranked[0].score).toBeGreaterThanOrEqual(good);+ expect(ranked.find((m) => m.font === "anton")!.score).toBeLessThan(ranked[0].score);+ });});diff --git a/site/src/cut/lib/fonts.json b/site/src/cut/lib/fonts.jsonindex 3b5728a4..e9e11a82 100644--- a/site/src/cut/lib/fonts.json+++ b/site/src/cut/lib/fonts.json@@ -47,6 +47,12 @@"weights": [900],"note": "Black only: the heavy geometric face of a reference's font cycle."},+ {+ "id": "antonio",+ "family": "Antonio",+ "weights": [700],+ "note": "Bold only: the tall condensed face of a lyric template's big words."+ },{"family": "Roboto","weights": [400, 500, 600, 700],