Skip to content

Latest commit

 

History

History
49 lines (47 loc) · 1.11 KB

README.md

File metadata and controls

49 lines (47 loc) · 1.11 KB

Persian fonts

The most popular Persian fonts are included in this package.

  • IranNastaliq
  • Lotus
  • Morvarid
  • Nazanin
  • Titr
  • Traffic
  • Yekan
  • Zar
  • Besmellah
  • ShapedBesmellah

Installation

CDN

Import library from the ESM.SH CDN for fast and easy setup:

In web browser

Simply include persian-fonts in your html <header> tag.

<link rel="stylesheet" href="//esm.sh/gh/rahatool/persian-fonts/main.css" />

NPM registry

Use the package manager npm to install persian-fonts.

$ npm install github:rahatool/persian-fonts

Fonts will be copied to node_modules/@raha.group/persian-fonts directory.

Usage

Sample of خوش‌نویسی

<html>
	<head>
		<link rel="stylesheet" href="//esm.sh/gh/rahatool/persian-fonts/main.css" />
		<style>
			.sample {
				font-family: 'IranNastaliq';
				font-size: 2rem;
			}
		</style>
	</head>
	<body>
		<p class="sample">
شاه‌نشینِ چشمِ من، تکیه‌گهِ خیـالِ توست<br />
جایِ دعاست شاهِ من، بی تو مباد جایِ تو
		</p>
	</body>
</html>