- Home
- Skills
- Frontend & Web Apps
- Bangla Web Typography and Font Setup
Works with the AI Agents you already use
Bangla Web Typography and Font Setup
by Saizul Amin
Audit and optimize Bangla web typography with script-specific linting, font pairing, and rendering fixes.
$3
Bangla Web Typography and Font Setup
Example session with this skill installed
Run the Bangla Web Typography and Font Setup skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the bangla web typography
Here is what the Bangla Web Typography and Font Setup skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:3 WARNING font-display: @font-face 'solaimanlipi' has no font-display; Bangla text is invisible until the font loads
fix: add font-display: swap; (or optional for body text on slow networks)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:3 INFO unicode-range: @font-face 'solaimanlipi' has no unicode-range
fix: add unicode-range: U+0980-09FE, U+200C-200D, U+25CC, U+0964-0965; so Latin text does not download the Bengali file
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:1 WARNING google-fonts: Google Fonts @import without display=swap
fix: append &display=swap, and prefer <link rel=preconnect> + <link> over @import
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:10 WARNING font-stack: 'body' font-family has no Bengali font: "Helvetica Neue", Arial, sans-serif
fix: add a Bengali family before the generic fallback, e.g. 'Inter', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:12 WARNING line-height: 'body' line-height 1.3 is tight for Bangla
fix: use 1.6-1.8 for Bangla body text (vowel signs and reph need vertical room)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:11 INFO font-size: 'body' font-size 14px is small for Bangla
fix: Bangla glyphs look smaller than Latin at the same size; use 16px+ (or size-adjust)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:16 WARNING letter-spacing: 'h1, h2' letter-spacing: 0.05em breaks the Bangla headstroke and conjuncts
fix: reset it for Bangla: :lang(bn) h1 { letter-spacing: normal; }
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:21 ERROR legacy-font: '.headline' uses a Bijoy/ANSI font (SutonnyMJ, serif)
fix: use a Unicode Bengali font and convert legacy text to Unicode
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:26 WARNING line-height: 'p' line-height 120% is tight for Bangla
fix: use 1.6-1.8 for Bangla body text (vowel signs and reph need vertical room)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:28 WARNING word-break: 'p' word-break: break-all splits Bangla words mid-word
fix: use overflow-wrap: anywhere; for long URLs instead
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:27 INFO justify: 'p' text-align: justify creates uneven gaps in Bangla (no hyphenation)
fix: prefer text-align: start for Bangla body text
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:33 INFO italic: ':lang(bn) em' italicises Bangla; Bengali fonts have no italics, so browsers fake a slant
fix: :lang(bn) em { font-style: normal; font-weight: 600; }
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.css:17 INFO faux-bold: bold text is used but 'solaimanlipi' is declared only in weight 400
fix: load a bold face of 'solaimanlipi' (e.g. 600/700) to avoid synthesized bold
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/bangla-localization-skills/tests/fixtures/bangla-typography-web/bad.html:2 WA
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Bangla script presents unique challenges on the web, from broken conjuncts and detached vowel signs to clipped line-heights and slow font loading. Standard CSS defaults often fail to account for the headstroke (মাত্রা) or the complex rendering requirements of an abugida script, leading to illegible text or "tofu" squares.
This skill provides a structured workflow for implementing and auditing Bangla typography. It includes a specialized Python linter that scans your CSS and HTML for script-specific anti-patterns like letter-spacing, justified text, or inadequate line-height. You get specific font-pairing recommendations using high-quality OFL fonts like Noto Sans Bengali and Hind Siliguri, along with optimized loading strategies using WOFF2 and unicode-range subsets.
What it does
- Lints CSS and HTML for Bangla-specific rendering errors like missing
langtags or bad font stacks. - Optimizes font loading through
font-display,unicode-rangesubsets, and preloading strategies. - Fixes broken rendering by identifying issues with conjuncts (যুক্তাক্ষর), reph, and vowel signs.
- Recommends font pairings that mix Latin and Bangla glyphs without layout shifts or size mismatches.
- Enforces typographic rules for line-height, letter-spacing, and word-breaking that respect the script's geometry.
How it works
- Analyze existing code using the
bn_css_lint.pyscript to identify layout and accessibility risks. - Select font stacks from a curated list of Noto, Hind, Baloo, and Anek fonts based on your UI needs.
- Implement a CSS baseline that sets script-appropriate line-heights (1.5+) and resets harmful defaults like letter-spacing.
- Verify rendering against a checklist of complex test strings to ensure conjuncts display correctly across browsers.
Frameworks & tools
Python 3.8+ for the linting script. Compatible with any web stack (React, Next.js, static HTML/CSS, Tailwind) and supports Google Fonts or self-hosted WOFF2 assets.
Why this beats prompting it yourself
Generic AI prompts often miss the technical nuances of Bangla rendering, such as why justify breaks Bengali word shaping or how to subset Unicode ranges for performance. This skill uses a specialized linter and a tested checklist of complex glyph combinations that general LLMs frequently overlook.
Use cases
- Auditing a bilingual landing page for Lighthouse performance and accessibility.
- Fixing "broken" text where vowel signs appear separated from their consonants.
- Setting up a design system with correct Bangla/English font fallbacks.
- Migrating legacy web content to modern Unicode standards.
Known limitations
Does not fix legacy Bijoy/ANSI encoding; text must be normalized to Unicode first. CSS checks are focused on web standards and do not apply to native iOS/Android system APIs.
Open source: saizul/bangla-localization-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Requires Unicode-encoded text; does not support legacy Bijoy/ANSI. Python 3.8+ required for linting script. Focuses on web CSS; native mobile apps require platform-specific font APIs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3.8+