vazirmatn-soft 1.0.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,6 +24,23 @@ body { font-family: 'Vazirmatn Soft', sans-serif; }
24
24
 
25
25
  Import one of the three, not all of them.
26
26
 
27
+ ## OpenType helpers
28
+
29
+ ```js
30
+ import 'vazirmatn-soft/features.css';
31
+ ```
32
+
33
+ | Class | Does |
34
+ |---|---|
35
+ | `vs-fa-digits` | Persian digits from Latin digits (`ss01`) |
36
+ | `vs-tnum` | Fixed-width digits |
37
+ | `vs-low-digits` | Lowered digits (`ss03`) |
38
+ | `vs-toman-2line` | Two-line compact تومان (`ss02`) |
39
+ | `vs-toman-alt` | Condensed تومان (`"salt" 2`) |
40
+ | `vs-heh-alt` | Nastaliq-style final ه (`ss04`) |
41
+
42
+ Compact تومان and ریال need no class: type «تومان» or «ریال» followed by «ء».
43
+
27
44
  ## License
28
45
 
29
46
  SIL Open Font License 1.1, like Vazirmatn. Free for personal and commercial use.
package/features.css ADDED
@@ -0,0 +1,11 @@
1
+ /* Vazirmatn Soft OpenType helpers. Classes can be combined: class="vs-fa-digits vs-tnum".
2
+ CSS can't merge font-feature-settings from two classes, so each combination below lists them all. */
3
+ .vs-fa-digits { font-feature-settings: "ss01"; }
4
+ .vs-tnum { font-variant-numeric: tabular-nums; }
5
+ .vs-low-digits { font-feature-settings: "ss03"; }
6
+ .vs-toman-2line { font-feature-settings: "ss02"; }
7
+ .vs-toman-alt { font-feature-settings: "salt" 2; } /* condensed form; "salt" 1 equals ss02 */
8
+ .vs-heh-alt { font-feature-settings: "ss04"; }
9
+ .vs-fa-digits.vs-low-digits { font-feature-settings: "ss01", "ss03"; }
10
+ .vs-fa-digits.vs-toman-2line { font-feature-settings: "ss01", "ss02"; }
11
+ .vs-fa-digits.vs-low-digits.vs-toman-2line { font-feature-settings: "ss01", "ss02", "ss03"; }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vazirmatn-soft",
3
- "version": "1.0.1",
3
+ "version": "1.1.2",
4
4
  "description": "Vazirmatn Soft: a free, soft and rounded Persian/Arabic web font (Vazirmatn with round dots, stroke ends and corners). 9 weights + variable.",
5
5
  "keywords": [
6
6
  "font",
@@ -32,12 +32,14 @@
32
32
  "./variable.css": "./variable.css",
33
33
  "./farsi-digits.css": "./farsi-digits.css",
34
34
  "./fonts/*": "./fonts/*",
35
- "./fonts-fd/*": "./fonts-fd/*"
35
+ "./fonts-fd/*": "./fonts-fd/*",
36
+ "./features.css": "./features.css"
36
37
  },
37
38
  "files": [
38
39
  "index.css",
39
40
  "variable.css",
40
41
  "farsi-digits.css",
42
+ "features.css",
41
43
  "fonts",
42
44
  "fonts-fd",
43
45
  "OFL.txt",