Skip to content

feat: add Anek Bangla font for Bengali text - #114

Closed
TheTahsinShahriar wants to merge 3 commits into
hscstack:mainfrom
TheTahsinShahriar:add-bangla-fonts
Closed

feat: add Anek Bangla font for Bengali text#114
TheTahsinShahriar wants to merge 3 commits into
hscstack:mainfrom
TheTahsinShahriar:add-bangla-fonts

Conversation

@TheTahsinShahriar

Copy link
Copy Markdown
Member

Summary

Adds Anek Bangla (self-hosted variable font) for Bengali text rendering, sourced from the Fontsource package.

Changes

  • resources/fonts/anek-bangla-bengali.woff2 - full variable font (weight 100-800, width axes), Bengali subset only
  • resources/css/app.css - declares @font-face for Anek Bangla with unicode-range targeting Bengali glyphs, adds it to the font-sans stack after Instrument Sans, and applies font-stretch: 96% globally (fixed width for all Bengali text; weight varies per placement)

How it works

  • Latin text -> Instrument Sans (first match in the stack)
  • Bengali glyphs -> Anek Bangla (fallback, triggered by unicode-range)
  • Width is fixed at 96 via font-stretch: 96% on body
  • Weight is variable (100-800) and responds to Tailwind font-weight utilities (font-bold, font-semibold, etc.)

Notes

This PR is based on the chore/windows-dev-compatability-fix branch (PR #113). Once #113 merges, this PR becomes fonts-only.

@TheTahsinShahriar

Copy link
Copy Markdown
Member Author

Superseded by #115 (clean branch off main)

@TheTahsinShahriar
TheTahsinShahriar deleted the add-bangla-fonts branch August 13, 2026 08:27
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.

1 participant