Open Dhivehi fonts for the web, and one install that makes Thaana work everywhere. 157 font families, free to embed or download. Agent-ready, with packages for React, Svelte, Vue and plain JavaScript: a Thaana keyboard, a bidi toolkit and an llms.txt for AI agents. Browse the fonts · Docs · Downloads · llms.txt Why Dhivehi fonts have been passed around for decades on dhivehi.mv, Hassan Hameed's site, the Thaana Type…
Open Dhivehi (Thaana) fonts for the web: a Google-Fonts-style CSS API and downloads, plus agent-ready @yashau/thaana packages for React, Svelte, Vue and plain JS (phonetic keyboard, bidi toolkit, llms.txt).
Open Dhivehi fonts for the web, and one install that makes Thaana work everywhere.
157 font families, free to embed or download. Agent-ready, with packages for React, Svelte, Vue and plain JavaScript:
a Thaana keyboard, a bidi toolkit and an llms.txt for AI agents.
Dhivehi fonts have been passed around for decades on dhivehi.mv, Hassan Hameed’s site, the Thaana Type Foundry, thatmaldivesblog, dhivehifont.com and countless shared folders. Most are painful on the web:
Some still put Thaana on Latin keys, so text looks like ihevid without the font.
Many have broken line metrics that clip the fili.
Duplicates circulate under different names.
Almost none come in web formats.
Getting RTL text, punctuation and brackets right is a maze.
Dhivehi fonts vary a lot in size at the same font-size. Add &normalize=1 to scale each font (CSS size-adjust) so its Thaana letters look as big as Faruma’s. The font files stay untouched.
Want the Thaana font first in your whole page’s font stack? Add &subset=thaana: every @font-face is then limited to Thaana (letters, ،؛؟, ﷲ, joiner and direction marks), so Latin letters, digits, punctuation and spaces fall through to the next font. It works for fonts shipped unmodified too.
Rather host the files yourself? Download them and give the packages their URLs: loadFonts({ family: 'Faruma', files: { 400: '/fonts/faruma-400.woff2' } }), or fontFaceCss() for a stylesheet. Nothing is then loaded from fonts.mv. For fonts shipped unmodified, also pass each file’s cssOverrides from fonts.json so your copies get the same line-spacing fix. fonts.json has a version that changes whenever any font file may have.
Let people type Thaana on any keyboard, with no build step:
Building with an AI agent? Point it at /llms.txt. It has every recipe, the RTL rules and the full font list, with absolute URLs.
What’s inside
🔤 The fonts
157 families / 226 styles: ModFaruma, Faruma, the MV classics, Thaana Type Foundry’s modern families, dhivehifont.com, Zillon and more.
Sorted by use: Official (document faces in the Faruma tradition), Handwriting, Artistic, Modern and Novelty. The browse page opens on Official and Handwriting; a search looks in every category.
Search by any name. Old names and duplicates are aliases (A_Waheed finds MV A Waheed).
Type tester with live preview, like Google Fonts, that gets RTL, punctuation and brackets right, and can show every font at the same letter size.
Download anything: single styles (TTF/OTF/WOFF2), whole families, or bundles (Essentials, Full suite, Unicode originals, Openly licensed, by category, webfont kits), plus a Legacy bundle of the original pre-Unicode files for opening old documents. Desktop bundles also install with one command: curl -fsSL https://fonts.mv/install/essentials.sh | sh on macOS and Linux, irm 'https://fonts.mv/install/essentials.ps1' | iex in PowerShell.
⌨️ The toolkit (@yashau/thaana, ~3 KB)
Phonetic keyboard for any input, textarea or contenteditable, using Microsoft’s standard Divehi Phonetic layout. Works with controlled inputs, keeps undo, never touches IME or paste.
Bidi helpers: keep +960 333-1234, -5, 9:00 and 50% readable inside Thaana; isolate names and URLs.
Text repair: convert old A_-font text to Unicode, fix Thaana copied out of PDFs, tidy punctuation.
Font loading and stacks, from fonts.mv or your own copies of the files (files, with cssOverrides for line spacing), with optional size normalisation ({ normalize: true }) and Thaana-only ranges ({ thaanaOnly: true }), plus CSS defaults that stop fili clipping.
What was done to the fonts
Fix
What changed
🔁 Unicode remapping
25 pre-Unicode fonts had Thaana on Latin keys and no Unicode version, so fonts.mv remapped them: their two keyboard layouts were recovered by matching glyph outlines against Unicode twins of the same designs. Where a modern Unicode version of an old A_ font exists, only the modern one is listed. The original pre-Unicode files, including five A_ fonts whose designer allows no changes, ship untouched only in the Legacy bundle, for opening old documents.
🧹 De‑duplication
Identical designs under different names were found by comparing rasterised letters and merged, with the other names kept as aliases.
📏 Metrics repair
33 fonts had broken vertical metrics (positive descenders, tiny line boxes) that clip fili in browsers, and now have consistent hhea/typo/win metrics, so line height is the same on Windows, macOS and Linux. Fonts that must ship unmodified get the same fix as CSS @font-face overrides instead (10 of them).
🎯 Fili as marks
Vowel marks are classed as combining marks (GDEF) so shapers stack them correctly, and stray mark widths are zeroed without moving the mark. Faruma’s malformed GDEF is repaired too.
🏷️ Clean names
Names and weights are normalised so families install as one family on desktop.
📐 Same size
Fonts differ a lot in size at the same font-size. Each family is measured against Faruma (median size of its Thaana letters) and gets a scale factor, applied only with CSS size-adjust when asked for (&normalize=1, { normalize: true }). The font files are untouched.
📦 Web formats
WOFF2, WOFF and TTF, plus Thaana/Latin unicode-range subsets for fonts we may modify: a Thaana-only page downloads only the Thaana part.
⚖️ Licenses respected
Glyph outlines are never changed. CC BY-ND fonts ship byte-for-byte, and so do Hassan Hameed’s, as his permission requires (only converted to WOFF/WOFF2). OFL fonts include OFL.txt. Every download carries its credits.
♻️ Reproducible
The build is byte-reproducible: whenever its inputs change, CI rebuilds it and checks the result against the repo.
Repository
apps/web/ SvelteKit 3 site on a Cloudflare Worker (pages, /css2 API, R2 for fonts + downloads)
packages/thaana/ @yashau/thaana: core toolkit, framework-agnostic, zero deps
packages/react/ @yashau/thaana-react
packages/svelte/ @yashau/thaana-svelte
packages/vue/ @yashau/thaana-vue
fonts/ font pipeline (Python + fontTools, run with uv)
sources/ the original font files
catalog/ families.toml (curated catalogue), bundles.toml, sources.tsv (attribution)
scripts/ build.py · bundles.py · r2_manifest.py · research/ (how layouts and duplicates were found)
.github/workflows/ CI · site deploy · npm release
mise install # node, pnpm, uv
mise run install # pnpm install + uv sync
mise run r2:local # build fonts + bundles and load them into local R2 (once)
mise run dev # http://localhost:5173
Task
What it does
mise run test
Unit tests for all packages (Vitest)
mise run check
Type-check packages and site
mise run lint / format
oxlint + oxfmt (JS/TS/Svelte), ruff (Python)
mise run fonts
Rebuild the font library from fonts/sources
mise run bundles
Build the download zips
pnpm --filter @fonts.mv/web test:e2e
Playwright against the real Worker under wrangler dev
Adding a font:
Drop the file in fonts/sources/.
Add a family to fonts/catalog/families.toml, plus a row in sources.tsv for attribution.
Run mise run bundles.
Commit the updated apps/web/src/lib/data.
Releasing
Site: every pull request to main deploys a preview to beta.fonts.mv. Merging to main deploys fonts.mv: it uploads changed fonts and bundles to R2, deploys the Worker, smoke-tests production and tags the commit site-vYYYY.MMDD.N.
Packages:mise run release:packages tags packages-vYYYY.MMDD.N, which tests, packs and publishes all four npm packages with provenance.
Credits and rights
The fonts belong to their makers: the Office of the President (Faruma, Reethi), Hassan Hameed, the Thaana Type Foundry, Hussain Niyaz, Zillon, Mohamed Amaan, M.A. Gadir and many others. Each family page and download names its makers and license, and lists exactly what fonts.mv changed. Fonts were collected via raajjefonts and their original sites.
If you hold rights to a font here and want it credited differently, relicensed or removed, open an issue or email [email protected]. Removal requests are honoured without argument.
License
Code is MIT. Each font keeps its own license and credits.
The fonts.mv wordmark and favicon are set in MV Neru Magu (dhivehifont.com), and the link-preview tagline in Bolhu (Thaana Type Foundry, OFL).
评论