namespace-guard 0.20.0 → 0.22.0
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 +8 -8
- package/dist/cli.js +389 -1796
- package/dist/cli.mjs +389 -1796
- package/dist/composability-vectors.js +385 -1794
- package/dist/composability-vectors.mjs +385 -1794
- package/dist/confusable-weights.d.mts +5 -3
- package/dist/confusable-weights.d.ts +5 -3
- package/dist/confusable-weights.js +807 -5035
- package/dist/confusable-weights.mjs +807 -5035
- package/dist/font-specific-weights.d.mts +4 -5
- package/dist/font-specific-weights.d.ts +4 -5
- package/dist/font-specific-weights.js +2848 -18740
- package/dist/font-specific-weights.mjs +2848 -18740
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +392 -1799
- package/dist/index.mjs +392 -1799
- package/dist/profanity-en.js +389 -1796
- package/dist/profanity-en.mjs +389 -1796
- package/package.json +1 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ConfusableWeights } from './index.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Per-font confusable weight maps for
|
|
4
|
+
* Per-font confusable weight maps for 106 fonts (macOS system fonts and Roboto).
|
|
5
5
|
*
|
|
6
|
-
* Each font's map contains
|
|
7
|
-
* are
|
|
8
|
-
* This gives 10-28x less data than the universal CONFUSABLE_WEIGHTS map.
|
|
6
|
+
* Each font's map contains the pairs found alike in that font, in shape and at the baseline, with danger
|
|
7
|
+
* saying how close they are there. Pairs found alike only across fonts have no single font and are not listed.
|
|
9
8
|
*
|
|
10
9
|
* Usage:
|
|
11
10
|
* import { FONT_SPECIFIC_WEIGHTS } from "namespace-guard/font-specific-weights";
|
|
12
11
|
* const weights = FONT_SPECIFIC_WEIGHTS["Arial"];
|
|
13
12
|
*
|
|
14
|
-
*
|
|
13
|
+
* Font set: macos-system-plus-roboto
|
|
15
14
|
*
|
|
16
15
|
* @licence CC-BY-4.0 (data); MIT (code)
|
|
17
16
|
* @attribution Paul Wood FRSA, confusable-vision
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ConfusableWeights } from './index.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Per-font confusable weight maps for
|
|
4
|
+
* Per-font confusable weight maps for 106 fonts (macOS system fonts and Roboto).
|
|
5
5
|
*
|
|
6
|
-
* Each font's map contains
|
|
7
|
-
* are
|
|
8
|
-
* This gives 10-28x less data than the universal CONFUSABLE_WEIGHTS map.
|
|
6
|
+
* Each font's map contains the pairs found alike in that font, in shape and at the baseline, with danger
|
|
7
|
+
* saying how close they are there. Pairs found alike only across fonts have no single font and are not listed.
|
|
9
8
|
*
|
|
10
9
|
* Usage:
|
|
11
10
|
* import { FONT_SPECIFIC_WEIGHTS } from "namespace-guard/font-specific-weights";
|
|
12
11
|
* const weights = FONT_SPECIFIC_WEIGHTS["Arial"];
|
|
13
12
|
*
|
|
14
|
-
*
|
|
13
|
+
* Font set: macos-system-plus-roboto
|
|
15
14
|
*
|
|
16
15
|
* @licence CC-BY-4.0 (data); MIT (code)
|
|
17
16
|
* @attribution Paul Wood FRSA, confusable-vision
|