fix: increase tree glyph stroke weight
Reference site / build (push) Canceled after 0s

This commit is contained in:
2026-10-11 01:15:32 +09:00
parent ef5ea5e528
commit 6897b2368a
4 changed files with 45 additions and 14 deletions
+3 -3
View File
@@ -219,8 +219,8 @@ test('trunk thickness and origin stay proportional to the slash throughout scali
await page.clock.runFor(time - previousTime);
const ink = await trunkGeometry(page);
expect(ink.opacity).toBeGreaterThan(0);
// At rest: the Lyth Mono filled stem is 1.064px, slash ink is 21px.
expect(ink.stemWidth).toBeCloseTo(1.064, 5);
// At rest: tree ink is weighted 25% above the font's native 1.064px stem.
expect(ink.stemWidth).toBeCloseTo(1.33, 5);
expect(ink.width / ink.slashHeight).toBeCloseTo(ink.stemWidth / 21, 5);
// The foot is at x=12 within ink bounds x=7…41, not their centre.
expect(ink.anchorX).toBeCloseTo(5 / 34, 5);
@@ -601,7 +601,7 @@ test.describe('JavaScript-free glyph tree', () => {
await expect(page.locator('.branch-prefix svg')).toHaveCount(8);
expect(await page.locator('.branch-prefix').evaluateAll((prefixes) => prefixes.every((prefix) => !prefix.textContent!.trim()))).toBe(true);
const trunk = await trunkGeometry(page);
expect(trunk.width).toBeCloseTo(1.064, 5);
expect(trunk.width).toBeCloseTo(1.33, 5);
expect(trunk.length).toBeGreaterThan(0);
expect(Math.abs(trunk.axis)).toBeLessThan(.1);
expect(trunk.gapRatio).toBeCloseTo(1 / 14, 5);