Vazirmatn
repository·master·Indexed 23 days ago
https://github.com/rastikerdar/vazirmatnA simple and legible Persian/Arabic typeface designed for web pages and applications, based on DejaVu Sans and incorporating Roboto for Latin glyphs. Available as an npm package, CDN link, or manual download, Vazirmatn includes multiple weights, a variable font version, and specialized variants such as UI, Round-Dots, and Farsi-Digits. Released under the Open Font License (OFL) from version 27 onwards.
What's inside vazirmatn
- From version 27 onwards, Vazirmatn is released under the OFL (Open Font License). This means anyone can use the font for any purpose. Versions up to 26 were released under public domain.
Use Vazirmatn UI version for better UI alignment
masterStandard Persian/Arabic fonts often have larger vertical footprints due to ascenders, descenders, and diacritics, which can cause misalignment with Latin fonts in User Interfaces.
The UI version of Vazirmatn is available in the
UIfolder; it has reduced height to minimize the vertical discrepancy between Persian and Latin characters in software interfaces.Build Vazirmatn fonts using Make
masterTo perform a full build of the Vazirmatn fonts, clone the repository and run the
make allcommand. This executes the following sequence:make fonts,make rd-fonts, andmake zip.git clone https://github.com/rastikerdar/vazirmatn.git cd vazirmatn/ make allInstall Vazirmatn via CDN
masterYou can include Vazirmatn in your HTML using a CDN link. For the current version, use the following link in your
<head>section:<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />Use Vazirmatn Variable Font in Web via CSS @font-face
masterTo use the Vazirmatn Variable font in your web projects, define it using the
@font-facerule in your CSS. You can use local files or a CDN. The variable font allows you to specify any weight between 100 and 900./* Standard Version */ @font-face { font-family: 'Vazirmatn'; src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'), url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; } /* Round-Dots Version */ @font-face { font-family: 'Vazirmatn RD'; src: url('Round-Dots/fonts/webfonts/Vazirmatn-RD[wght].woff2') format('woff2 supports variations'), url('Round-Dots/fonts/webfonts/Vazirmatn-RD[wght].woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }Install Vazirmatn on Fedora Linux
masterYou can install specific variants or all variants using
dnf:- To install the main variant:
dnf install vazirmatn-vf-fonts- To install all variants (RD/NL/UI/etc.):
dnf install vazirmatn-fonts-allInstall Vazirmatn on Arch Linux
masterUse the AUR to install the Vazirmatn fonts using
yay:yay -S vazirmatn-fontsInstall and run the Vazirmatn website locally
masterTo set up the Vazirmatn website development environment, use
yarnto install dependencies andyarn devto start the development server. Once running, the website is accessible athttp://localhost:3000/vazirmatn.$ yarn $ yarn devReport issues or suggest improvements for Vazirmatn
masterYou can contribute to the project in two ways:
- GitHub Issues: Open a new issue in the official repository: https://github.com/rastikerdar/vazirmatn/issues
- Email: Contact the author via the email address listed in the
AUTHORS.txtfile in the repository.
Download Vazirmatn font files manually
masterTo download the font files directly, grab the latest release zip package.
- TTF files are located in the
fonts/ttffolder. - A rounded dots version is available in the
Round-Dots/folder.
- TTF files are located in the
Install Vazirmatn on Windows
masterTo install the font on a Windows system:
- Open the main file or the compressed archive you downloaded.
- Navigate to the
fonts/ttffolder. - Open the
.ttffiles and click the Install button in the font preview window.
Alternatively, select all
.ttffiles and move them directly to thewindows/fontsdirectory.Identify Vazirmatn font variants and directory structures
masterThe Vazirmatn font package provides several specialized versions to suit different design requirements. Use the following directory paths to locate specific variants:
- Main (اصلی): The standard version including Latin characters. Located in
fonts. - Round-Dots (نقطهگرد): The standard version with circular dots. Located in
Round-Dots/fonts. - Farsi-Digits (تمام ارقام فارسی): Replaces all Latin and Arabic digits with Persian digits. Located in
misc/Farsi-Digits. - Non-Latin (بدون لاتین): A version where Latin characters have been removed. Located in
misc/Non-Latin. - UI: A version optimized for lower line height/vertical space. Located in
misc/UI. - Combined (ترکیبی): Custom combinations of the above. For example,
misc/UI-Farsi-Digits-Non-Latinprovides the UI version with Persian digits and no Latin characters.
- Main (اصلی): The standard version including Latin characters. Located in