Skip to content

feat: add Bengali support (Atma bundled font)#67

Merged
gkurt merged 4 commits into
gkurt:mainfrom
2u841r:feat/bengali-atma-font
Jul 12, 2026
Merged

feat: add Bengali support (Atma bundled font)#67
gkurt merged 4 commits into
gkurt:mainfrom
2u841r:feat/bengali-atma-font

Conversation

@2u841r

@2u841r 2u841r commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a BENGALI_CHARS charset preset (mirrors the existing Devanagari preset: vowels, consonants, nukta forms, matras, marks, digits + Latin baseline).
  • Bundle Atma (SIL OFL 1.1, Google Fonts) as the pre-generated Bengali handwriting font under tegaki/fonts/atma, following the same pipeline/export pattern as the existing Tillana (Devanagari) bundle.
  • Wire Bengali into the studio UI: font picker (EXAMPLE_FONTS), sample text (EXAMPLE_FONT_TEXTS, TEXT_PRESETS), and the homepage font showcase.
  • Update README.md built-in fonts list, AGENTS.md, and add a Tegami changelog entry (minor bump for tegaki).

Test plan

  • bun checks (lint + typecheck + tests) passes
  • bun --filter tegaki generate-fonts atma regenerates the bundle cleanly (162 glyphs, 0 skipped)
  • Manually verified in the studio (/tegaki/studio/?f=Atma&ch=Bengali) that Bengali text renders correctly, including matra reordering

2u841r and others added 4 commits July 12, 2026 14:44
Adds a Bengali charset preset, wires it into the generator/studio UI,
and bundles Atma (OFL) as the pre-generated Bengali handwriting font,
following the same pattern as the existing Devanagari (Tillana) bundle.
Add two e2e cases covering the Atma Bengali bundle, mirroring the
existing Devanagari cluster-fallback pattern:

- bengali-cluster-fallback: final frame, overlay on — verifies every
  cluster resolves to real strokes (pre-base e-matra reorder + na-da
  conjunct) and the canvas matches the DOM overlay.
- bengali-cluster-mid: mid-animation seam guard — the drawn word must
  sit on the reordered-matra positions of the not-yet-drawn overlay.

Commits darwin + linux baselines for both cases.
The interactive tool was renamed /generator → /studio (generator.astro
is now just a redirect shim; studio.astro mounts GeneratorApp). Update
AGENTS.md to point at /tegaki/studio/ throughout — the route table, the
website file-structure block, the open-in-new-tab swap, and the visual-
testing workflow — and note the redirect so old links stay documented.
@gkurt

gkurt commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Good addition. Thank you for the contribution 🙏🏻

@gkurt gkurt merged commit 6f9519d into gkurt:main Jul 12, 2026
5 checks passed
@2u841r

2u841r commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

Good addition. Thank you for the contribution 🙏🏻

Thanks! Happy to contribute. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants