A developer font for Arabic and code.
Fira Code's Latin and ligatures with Cascadia Code's Arabic, reworked so every character keeps its own column and every mark sits where Arabic expects it. For editors, IDEs and terminals.
In useقيد الاستخدام
Arabic strings and comments sit in code the way Latin ones do: same column width, same line height, joined and readable.
package app.routing // يحسب الوقت المتبقي للوصول بالدقائقfun eta(route: Route, speedKmh: Double): String { val minutes = (route.distanceKm / speedKmh * 60).roundToInt() return when { minutes < 1 -> "أقل من دقيقة" minutes == 1 -> "دقيقة واحدة" else -> "$minutes دقيقة" }}
const greetings = { ar: "أهلًا وسهلًا", en: "Welcome" } as const; export function greet(locale: keyof typeof greetings, name: string) { return locale === "ar" ? `${greetings.ar} يا ${name}` : `${greetings.en}, ${name}`;} greet("ar", "سارة"); // أهلًا وسهلًا يا سارة
import re def arabic_words(text: str) -> int: """يعدّ الكلمات العربية في نص.""" return len(re.findall(r"[-ۿ]+", text)) assert arabic_words("بسم الله الرحمن الرحيم") == 4assert arabic_words("Hello مرحبا") == 1
~/maps $ git log --oneline -3a1f3c9e إصلاح موضع الحركات فوق الحروف7d20b11 Draw lam-alef across two columnsc84e2f0 دعم الكتابة من اليمين إلى اليسار~/maps $ lsالخبر.geojson الدمام.geojson routes.json~/maps $ echo "السلام عليكم" | wc -m 13
One character, one columnحرف لكل عمود
A terminal gives every character its own cell, and an editor counts columns. Ramz Mono keeps Arabic to that grid, so letters join across cell edges and code stays aligned.
Lam-alef (لا) is the one place two letters share a shape. Ramz Mono draws it across its two columns, centred, so neither column is left empty.
Arabic, written properlyعربية صحيحة
The details a code font usually leaves out.
Lam-alef
The required ligature, spread across its two columns.
Allah
Shadda and superscript alef added over the second lam, as Arabic fonts do.
Vowels
Every vowel attaches to every letter, clear of its dots.
Stacked marks
A vowel over a shadda, each clear of the other.
Persian and Urdu
Zero-width non-joiners, Persian and Urdu letters, inverted damma.
Code ligatures
Fira Code's ligatures and stylistic sets, as they were.
Six weightsستة أوزان
Light to Bold, with Retina between Regular and Medium.
Try itجرّبه
Type anything. The grid shows the columns.
Installالتثبيت
Download the zip, install the six files, then restart the app: most read the font list when they start.
macOS
- Unzip RamzMono-1.000.zip.
- Select the six .ttf files and open them.
- Click Install in Font Book.
Windows
- Unzip the download.
- Select the .ttf files, right-click.
- Choose Install for all users.
Linux
- Copy the .ttf files to ~/.local/share/fonts.
- Run fc-cache -f.
VS Code
"editor.fontFamily": "Ramz Mono",
"editor.fontLigatures": trueJetBrains IDEs
Settings › Editor › Font
Font: Ramz Mono
Enable ligaturesWindows Terminal
"font": {
"face": "Ramz Mono"
}Credits and licenseالشكر والترخيص
Free and open. Ramz Mono is licensed under the SIL Open Font License 1.1: use it, bundle it and modify it; just don't sell the font on its own.
Built on two open fonts. Latin and code ligatures from Fira Code, © The Fira Code Project Authors. Arabic from Cascadia Code, © Microsoft Corporation, with Reserved Font Name Cascadia Code. Ramz Mono acknowledges both; neither endorses it.
Checked. This release is tested with FontBakery, Shaperglot and Hyperglot, and shaped in both HarfBuzz and Apple's Core Text.
Arabic sources. The Allah rule follows Arabic usage, a little wider than Unicode Technical Note #46.