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.
@@ -1,17 +1,16 @@
1
1
  import { ConfusableWeights } from './index.mjs';
2
2
 
3
3
  /**
4
- * Per-font confusable weight maps for 74 macOS system fonts.
4
+ * Per-font confusable weight maps for 106 fonts (macOS system fonts and Roboto).
5
5
  *
6
- * Each font's map contains only the high-risk pairs (visual score >= 0.7) that
7
- * are visually confusable when the target character renders in that specific font.
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
- * Platform: darwin arm64 25.2.0 (macos-m1-system-230fonts)
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 74 macOS system fonts.
4
+ * Per-font confusable weight maps for 106 fonts (macOS system fonts and Roboto).
5
5
  *
6
- * Each font's map contains only the high-risk pairs (visual score >= 0.7) that
7
- * are visually confusable when the target character renders in that specific font.
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
- * Platform: darwin arm64 25.2.0 (macos-m1-system-230fonts)
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