JSPM

  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q54941F
  • License MIT

Best practices (The Right Way) of using Persian/Arabic web fonts in the website and webapp.

Package Exports

  • @alwatr/font
  • @alwatr/font/vazirmatn.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alwatr/font) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Alwatr Font - @alwatr/font

Best practices (The Right Way) of using Persian/Arabic web fonts in the website and webapp.

How to use

Insert these lines inside <head> tag. Demo

Vazirmatn

<meta charset="UTF-8" />

<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/vazirmatn.min.css" fetchpriority="high" />

<link
  rel="preload"
  href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/vazirmatn/vazirmatn[wght].woff2"
  as="font"
  type="font/woff2"
  crossorigin
/>

Vazirmatn Round Dot

<meta charset="UTF-8" />

<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/vazirmatn-roundot.min.css"
  fetchpriority="high"
/>

<link
  rel="preload"
  href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/vazirmatn-roundot/vazirmatn-roundot[wght].woff2"
  as="font"
  type="font/woff2"
  crossorigin
/>

Sahel

<meta charset="UTF-8" />

<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/sahel.min.css" fetchpriority="high" />

<link
  rel="preload"
  href="https://cdn.jsdelivr.net/npm/@alwatr/font@0.21.0/sahel/sahel[wght].woff2"
  as="font"
  type="font/woff2"
  crossorigin
/>