vazir-code-font
Version:
A Persian (farsi) Monospaced Font for coding - فونت (قلم) فارسی وزیرکد برای کد نویسی
90 lines (65 loc) • 2.51 kB
Markdown
# Vazir-Code-Font
A Persian (Farsi) Monospaced Font
<p dir="rtl">
فونت فارسی وزیرکد از نوع Monospaced یا تکفاصله
ترکیب شده با فونتهای Inconsolata و Hack
<br />
<a href="http://rastikerdar.github.io/vazir-code-font/">نمایش فونت</a> <br />
<a href="https://github.com/rastikerdar/vazir-code-font/releases">صفحه دریافت (دانلود) بسته فونت شامل فایلهای ttf,woff,eot</a> <br />
با تشکر از برنامه <a href="https://fontforge.github.io">FontForge</a><br />
بر مبنای <a href="http://rastikerdar.github.io/vazir-font/">فونت وزیر</a>
</p>
<h1 dir="rtl">
طریقه استفاده در صفحات وب:
</h1>
<p dir="rtl">
کد زیر را در قسمت style یا فایل css وارد نمایید:
</p>
```css
@font-face {
font-family: Vazir Code;
src: url('Vazir-Code.eot');
src: url('Vazir-Code.eot?#iefix') format('embedded-opentype'),
url('Vazir-Code.woff') format('woff'),
url('Vazir-Code.ttf') format('truetype');
font-weight: normal;
}
@font-face {
font-family: Vazir Code Hack;
src: url('Vazir-Code-Hack.eot');
src: url('Vazir-Code-Hack.eot?#iefix') format('embedded-opentype'),
url('Vazir-Code-Hack.woff') format('woff'),
url('Vazir-Code-Hack.ttf') format('truetype');
font-weight: normal;
}
pre, code {
font-family: 'Vazir Code', 'Vazir Code Hack', monospaced;
}
```
## Install
#### Download
Grab the [latest release](https://github.com/rastikerdar/vazir-code-font/releases/latest) file.
#### Bower
```
bower install vazir-code-font --save
```
#### CDN
Link fonts from the [RawGit](https://rawgit.com) CDN:
```html
<link href="https://cdn.rawgit.com/rastikerdar/vazir-code-font/v[X.Y.Z]/dist/font-face.css" rel="stylesheet" type="text/css" />
```
Replace [X.Y.Z] with the latest version (e.g. 1.1.2) and integrate the font into your CSS:
```
font-family: 'Vazir Code', monospaced;
```
#### Homebrew
You can install the font on macOS machines by tapping the caskroom/fonts repo:
```shell
brew tap caskroom/fonts
brew install font-vazir-code
```
####Arch Linux
Arch user's could use [vazir-code-fonts](https://aur.archlinux.org/packages/vazir-code-fonts/) package from [AUR](https://aur.archlinux.org/) repository to install vazir-code font. Use your favourite [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) like pacaur or yaourt for installing package:
```shell
pacaur -S vazir-code-fonts
```