A Persian (Farsi) Font - قلم (فونت) فارسی وزیر
rastikerdar Merge pull request #102 from sajaddp/master
اصلاح طریقه استفاده در صفحات وب
Latest commit e9009b2 Aug 27, 2018
Permalink
Failed to load latest commit information.
dist Add heavy version Aug 2, 2018
source v19.0.0 Aug 2, 2018
.gitattributes Add binary attrs #24 thanks @geminorum Jul 4, 2016
.gitignore v10.0.0 May 27, 2017
.travis.yml add publish to npm with travis Feb 12, 2017
CHANGELOG.md v19.0.0 Aug 2, 2018
LICENSE v4.0.0 Aug 11, 2016
README.md Readme updated Aug 27, 2018
bower.json v19.0.0 Aug 2, 2018
build.conf v19.0.0 Aug 2, 2018
package.json v19.0.0 Aug 2, 2018
sample.png v18.0.1 Apr 12, 2018

README.md

Vazir-Font

A Persian (Farsi) Font

Build Status npm version

فونت فارسی وزیر

نمایش فونت

صفحه دریافت (دانلود) بسته فونت شامل فایل های ttf,woff,eot


متن نمونه:


با تشکر از برنامه FontForge

بر مبنای فونت DejaVu Sans 2.35

نسخه های بدون حروف لاتین یا تمام ارقام فارسی درون بسته فشرده موجود می‌باشد.

طریقه استفاده در صفحات وب:

کد زیر را در قسمت style یا فایل css وارد نمایید:

@font-face {
    font-family: Vazir;
    src: url('Vazir.eot');
    src: url('Vazir.eot?#iefix') format('embedded-opentype'),
         url('Vazir.woff2') format('woff2'),
         url('Vazir.woff') format('woff'),
         url('Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Vazir-Bold.eot');
    src: url('Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('Vazir-Bold.woff2') format('woff2'),
         url('Vazir-Bold.woff') format('woff'),
         url('Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Vazir-Black.eot');
    src: url('Vazir-Black.eot?#iefix') format('embedded-opentype'),
         url('Vazir-Black.woff2') format('woff2'),
         url('Vazir-Black.woff') format('woff'),
         url('Vazir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Vazir-Medium.eot');
    src: url('Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('Vazir-Medium.woff2') format('woff2'),
         url('Vazir-Medium.woff') format('woff'),
         url('Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Vazir-Light.eot');
    src: url('Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('Vazir-Light.woff2') format('woff2'),
         url('Vazir-Light.woff') format('woff'),
         url('Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Vazir-Thin.eot');
    src: url('Vazir-Thin.eot?#iefix') format('embedded-opentype'),
         url('Vazir-Thin.woff2') format('woff2'),
         url('Vazir-Thin.woff') format('woff'),
         url('Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

Install

Download

Grab the latest release file.

Bower

bower install vazir-font --save

npm

npm install vazir-font

Fonts will be copied to node_modules/vazir-font/dist directory

CDN

Link fonts from the RawGit CDN:

<link href="https://cdn.rawgit.com/rastikerdar/vazir-font/v[X.Y.Z]/dist/font-face.css" rel="stylesheet" type="text/css" />

Replace [X.Y.Z] with the latest version (e.g. 19.0.0) and integrate the font into your CSS:

font-family: 'Vazir', sans-serif;

Homebrew

You can install the font on macOS machines by tapping the caskroom/fonts repo:

brew tap caskroom/fonts
brew install font-vazir

Arch Linux

Arch user's could use vazir-fonts package from AUR repository to install vazir font. Use your favourite AUR helper like pacaur or yaourt for installing package:

pacaur -S vazir-fonts

Ubuntu

An unofficial PPA is available for installing Vazir and other free Persian fonts. It only works on Ubuntu 18.04 and higher. Open a Terminal and enter these commands:

sudo add-apt-repository ppa:blacksuited/fonts
sudo apt install fonts-vazir