Skip to content

Latest commit

 

History

History
112 lines (83 loc) · 2.75 KB

README.md

File metadata and controls

112 lines (83 loc) · 2.75 KB

Vazir-Code-Font

A Persian (Farsi) Monospaced Font

فونت فارسی وزیرکد از نوع Monospaced یا تک‌فاصله ترکیب شده با فونت‌های Inconsolata و Hack

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

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

بر مبنای فونت وزیر

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

کد زیر را در قسمت style یا فایل 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 file.

CDN

Link fonts from the RawGit CDN:

<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css" rel="stylesheet" type="text/css" />

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:

brew tap caskroom/fonts
brew install font-vazir-code

NixOS

It can be also installed in NixOS:

{
  enableDefaultFonts = true;
  fonts = with pkgs; [
    vazir-code-font
    ];
  fontconfig = {
    defaultFonts = {
      monospace = [ "Vazir Code"];
    };
  };
}

Arch Linux

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

pacaur -S vazir-code-fonts

GNU/Linux

gnu/linux users could use kateb font manager, to install vazir-code font.

kateb install vazircode
or
kateb update vazircode