openpencil/packages
Fini 8bbfc95e27 test(pen-core): CJK font dispatch regression matrix across builders
52 tests cover the text-rules contract end to end:

- cjk-detect primitive: 6 scripts (zh/ja/ko/ar/emoji/latin) × correct
  mapping to 'chinese' | 'japanese' | 'korean' | null
- cjkFontFamily: maps each script to Noto Sans SC/JP/KR, null → undefined
- heading: 4 levels × 6 scripts = 24 tests verifying
  zh→Noto Sans SC, ja→Noto Sans JP, ko→Noto Sans KR, else undefined
- heading CJK preset: lineHeight >= 1.3 + non-negative letterSpacing
  (regression guard — CJK chars overlap with negative tracking)
- body-text: 6 scripts all resolve to Inter (fallback font stack
  handles CJK, not explicit dispatch)
- Baseline: 10 other text-carrying builders with CJK content emit
  sub-text nodes WITHOUT fontFamily — this anchors current behavior
  so a future regression that leaks dispatch becomes visible.

The baseline tests are deliberate: they document "what doesn't
dispatch today" rather than asserting it's wrong. If we ever want
list-row or card-row to auto-pick CJK fonts, the test will need to
be updated as part of that decision.
2026-04-22 01:40:03 +08:00
..
agent-native@e1f90cab96 chore(agent): bump agent-native to v0.4.0 release 2026-04-17 19:04:15 +08:00
pen-acp chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-ai-skills fix(ai-skills): add tab-underline to elements.md roles list 2026-04-22 00:37:38 +08:00
pen-core test(pen-core): CJK font dispatch regression matrix across builders 2026-04-22 01:40:03 +08:00
pen-engine chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-figma chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-mcp test: insertElementTree direct + builder edge-case coverage 2026-04-22 01:03:40 +08:00
pen-react chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-renderer chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-sdk chore(release): bump to v0.7.4 2026-04-17 19:20:19 +08:00
pen-types fix(core): design.md lives on PenDocument — kill cross-document leak 2026-04-20 00:37:31 +08:00
CLAUDE.md V0.7.0 (#95) 2026-04-11 23:25:13 +08:00