@fontsource/noto-emoji 4.5.6 → 5.0.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.
Files changed (147) hide show
  1. package/300.css +40 -31
  2. package/400.css +40 -31
  3. package/500.css +40 -31
  4. package/600.css +40 -31
  5. package/700.css +40 -31
  6. package/CHANGELOG.md +1 -2
  7. package/LICENSE +93 -0
  8. package/README.md +13 -14
  9. package/emoji-300.css +4 -5
  10. package/emoji-400.css +4 -5
  11. package/emoji-500.css +4 -5
  12. package/emoji-600.css +4 -5
  13. package/emoji-700.css +4 -5
  14. package/emoji.css +20 -21
  15. package/files/noto-emoji-0-300-normal.woff +0 -0
  16. package/files/noto-emoji-0-300-normal.woff2 +0 -0
  17. package/files/noto-emoji-0-400-normal.woff +0 -0
  18. package/files/noto-emoji-0-400-normal.woff2 +0 -0
  19. package/files/noto-emoji-0-500-normal.woff +0 -0
  20. package/files/noto-emoji-0-500-normal.woff2 +0 -0
  21. package/files/noto-emoji-0-600-normal.woff +0 -0
  22. package/files/noto-emoji-0-600-normal.woff2 +0 -0
  23. package/files/noto-emoji-0-700-normal.woff +0 -0
  24. package/files/noto-emoji-0-700-normal.woff2 +0 -0
  25. package/files/noto-emoji-1-300-normal.woff +0 -0
  26. package/files/noto-emoji-1-300-normal.woff2 +0 -0
  27. package/files/noto-emoji-1-400-normal.woff +0 -0
  28. package/files/noto-emoji-1-400-normal.woff2 +0 -0
  29. package/files/noto-emoji-1-500-normal.woff +0 -0
  30. package/files/noto-emoji-1-500-normal.woff2 +0 -0
  31. package/files/noto-emoji-1-600-normal.woff +0 -0
  32. package/files/noto-emoji-1-600-normal.woff2 +0 -0
  33. package/files/noto-emoji-1-700-normal.woff +0 -0
  34. package/files/noto-emoji-1-700-normal.woff2 +0 -0
  35. package/files/noto-emoji-2-300-normal.woff +0 -0
  36. package/files/noto-emoji-2-300-normal.woff2 +0 -0
  37. package/files/noto-emoji-2-400-normal.woff +0 -0
  38. package/files/noto-emoji-2-400-normal.woff2 +0 -0
  39. package/files/noto-emoji-2-500-normal.woff +0 -0
  40. package/files/noto-emoji-2-500-normal.woff2 +0 -0
  41. package/files/noto-emoji-2-600-normal.woff +0 -0
  42. package/files/noto-emoji-2-600-normal.woff2 +0 -0
  43. package/files/noto-emoji-2-700-normal.woff +0 -0
  44. package/files/noto-emoji-2-700-normal.woff2 +0 -0
  45. package/files/noto-emoji-3-300-normal.woff +0 -0
  46. package/files/noto-emoji-3-300-normal.woff2 +0 -0
  47. package/files/noto-emoji-3-400-normal.woff +0 -0
  48. package/files/noto-emoji-3-400-normal.woff2 +0 -0
  49. package/files/noto-emoji-3-500-normal.woff +0 -0
  50. package/files/noto-emoji-3-500-normal.woff2 +0 -0
  51. package/files/noto-emoji-3-600-normal.woff +0 -0
  52. package/files/noto-emoji-3-600-normal.woff2 +0 -0
  53. package/files/noto-emoji-3-700-normal.woff +0 -0
  54. package/files/noto-emoji-3-700-normal.woff2 +0 -0
  55. package/files/noto-emoji-4-300-normal.woff +0 -0
  56. package/files/noto-emoji-4-300-normal.woff2 +0 -0
  57. package/files/noto-emoji-4-400-normal.woff +0 -0
  58. package/files/noto-emoji-4-400-normal.woff2 +0 -0
  59. package/files/noto-emoji-4-500-normal.woff +0 -0
  60. package/files/noto-emoji-4-500-normal.woff2 +0 -0
  61. package/files/noto-emoji-4-600-normal.woff +0 -0
  62. package/files/noto-emoji-4-600-normal.woff2 +0 -0
  63. package/files/noto-emoji-4-700-normal.woff +0 -0
  64. package/files/noto-emoji-4-700-normal.woff2 +0 -0
  65. package/files/noto-emoji-5-300-normal.woff +0 -0
  66. package/files/noto-emoji-5-300-normal.woff2 +0 -0
  67. package/files/noto-emoji-5-400-normal.woff +0 -0
  68. package/files/noto-emoji-5-400-normal.woff2 +0 -0
  69. package/files/noto-emoji-5-500-normal.woff +0 -0
  70. package/files/noto-emoji-5-500-normal.woff2 +0 -0
  71. package/files/noto-emoji-5-600-normal.woff +0 -0
  72. package/files/noto-emoji-5-600-normal.woff2 +0 -0
  73. package/files/noto-emoji-5-700-normal.woff +0 -0
  74. package/files/noto-emoji-5-700-normal.woff2 +0 -0
  75. package/files/noto-emoji-6-300-normal.woff +0 -0
  76. package/files/noto-emoji-6-300-normal.woff2 +0 -0
  77. package/files/noto-emoji-6-400-normal.woff +0 -0
  78. package/files/noto-emoji-6-400-normal.woff2 +0 -0
  79. package/files/noto-emoji-6-500-normal.woff +0 -0
  80. package/files/noto-emoji-6-500-normal.woff2 +0 -0
  81. package/files/noto-emoji-6-600-normal.woff +0 -0
  82. package/files/noto-emoji-6-600-normal.woff2 +0 -0
  83. package/files/noto-emoji-6-700-normal.woff +0 -0
  84. package/files/noto-emoji-6-700-normal.woff2 +0 -0
  85. package/files/noto-emoji-7-300-normal.woff +0 -0
  86. package/files/noto-emoji-7-300-normal.woff2 +0 -0
  87. package/files/noto-emoji-7-400-normal.woff +0 -0
  88. package/files/noto-emoji-7-400-normal.woff2 +0 -0
  89. package/files/noto-emoji-7-500-normal.woff +0 -0
  90. package/files/noto-emoji-7-500-normal.woff2 +0 -0
  91. package/files/noto-emoji-7-600-normal.woff +0 -0
  92. package/files/noto-emoji-7-600-normal.woff2 +0 -0
  93. package/files/noto-emoji-7-700-normal.woff +0 -0
  94. package/files/noto-emoji-7-700-normal.woff2 +0 -0
  95. package/files/noto-emoji-8-300-normal.woff +0 -0
  96. package/files/noto-emoji-8-300-normal.woff2 +0 -0
  97. package/files/noto-emoji-8-400-normal.woff +0 -0
  98. package/files/noto-emoji-8-400-normal.woff2 +0 -0
  99. package/files/noto-emoji-8-500-normal.woff +0 -0
  100. package/files/noto-emoji-8-500-normal.woff2 +0 -0
  101. package/files/noto-emoji-8-600-normal.woff +0 -0
  102. package/files/noto-emoji-8-600-normal.woff2 +0 -0
  103. package/files/noto-emoji-8-700-normal.woff +0 -0
  104. package/files/noto-emoji-8-700-normal.woff2 +0 -0
  105. package/files/noto-emoji-9-300-normal.woff +0 -0
  106. package/files/noto-emoji-9-300-normal.woff2 +0 -0
  107. package/files/noto-emoji-9-400-normal.woff +0 -0
  108. package/files/noto-emoji-9-400-normal.woff2 +0 -0
  109. package/files/noto-emoji-9-500-normal.woff +0 -0
  110. package/files/noto-emoji-9-500-normal.woff2 +0 -0
  111. package/files/noto-emoji-9-600-normal.woff +0 -0
  112. package/files/noto-emoji-9-600-normal.woff2 +0 -0
  113. package/files/noto-emoji-9-700-normal.woff +0 -0
  114. package/files/noto-emoji-9-700-normal.woff2 +0 -0
  115. package/files/noto-emoji-emoji-300-normal.woff +0 -0
  116. package/files/noto-emoji-emoji-300-normal.woff2 +0 -0
  117. package/files/noto-emoji-emoji-400-normal.woff +0 -0
  118. package/files/noto-emoji-emoji-400-normal.woff2 +0 -0
  119. package/files/noto-emoji-emoji-500-normal.woff +0 -0
  120. package/files/noto-emoji-emoji-500-normal.woff2 +0 -0
  121. package/files/noto-emoji-emoji-600-normal.woff +0 -0
  122. package/files/noto-emoji-emoji-600-normal.woff2 +0 -0
  123. package/files/noto-emoji-emoji-700-normal.woff +0 -0
  124. package/files/noto-emoji-emoji-700-normal.woff2 +0 -0
  125. package/index.css +40 -31
  126. package/metadata.json +21 -1
  127. package/package.json +29 -1
  128. package/scss/metadata.scss +25 -0
  129. package/scss/mixins.scss +161 -106
  130. package/unicode.json +12 -1
  131. package/files/file-list.json +0 -1
  132. package/files/noto-emoji-[0]-variable-wghtOnly-normal.woff2 +0 -0
  133. package/files/noto-emoji-[1]-variable-wghtOnly-normal.woff2 +0 -0
  134. package/files/noto-emoji-[2]-variable-wghtOnly-normal.woff2 +0 -0
  135. package/files/noto-emoji-[3]-variable-wghtOnly-normal.woff2 +0 -0
  136. package/files/noto-emoji-[4]-variable-wghtOnly-normal.woff2 +0 -0
  137. package/files/noto-emoji-[5]-variable-wghtOnly-normal.woff2 +0 -0
  138. package/files/noto-emoji-[6]-variable-wghtOnly-normal.woff2 +0 -0
  139. package/files/noto-emoji-[7]-variable-wghtOnly-normal.woff2 +0 -0
  140. package/files/noto-emoji-[8]-variable-wghtOnly-normal.woff2 +0 -0
  141. package/files/noto-emoji-[9]-variable-wghtOnly-normal.woff2 +0 -0
  142. package/files/noto-emoji-all-300-normal.woff +0 -0
  143. package/files/noto-emoji-all-400-normal.woff +0 -0
  144. package/files/noto-emoji-all-500-normal.woff +0 -0
  145. package/files/noto-emoji-all-600-normal.woff +0 -0
  146. package/files/noto-emoji-all-700-normal.woff +0 -0
  147. package/variable.css +0 -9
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/index.css CHANGED
@@ -1,90 +1,99 @@
1
- /* noto-emoji-[0]-400-normal*/
1
+ /* noto-emoji-[0]-400-normal */
2
2
  @font-face {
3
3
  font-family: 'Noto Emoji';
4
4
  font-style: normal;
5
- font-display: swap;
5
+ font-display: var(--fontsource-display, swap);
6
6
  font-weight: 400;
7
- src: url('./files/noto-emoji-0-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
7
+ src: url(./files/noto-emoji-0-400-normal.woff2) format('woff2'), url(./files/noto-emoji-0-400-normal.woff) format('woff');
8
8
  unicode-range: U+1f1e6-1f1ff;
9
9
  }
10
- /* noto-emoji-[1]-400-normal*/
10
+
11
+ /* noto-emoji-[1]-400-normal */
11
12
  @font-face {
12
13
  font-family: 'Noto Emoji';
13
14
  font-style: normal;
14
- font-display: swap;
15
+ font-display: var(--fontsource-display, swap);
15
16
  font-weight: 400;
16
- src: url('./files/noto-emoji-1-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
17
+ src: url(./files/noto-emoji-1-400-normal.woff2) format('woff2'), url(./files/noto-emoji-1-400-normal.woff) format('woff');
17
18
  unicode-range: U+200d,U+2620,U+26a7,U+fe0f,U+1f308,U+1f38c,U+1f3c1,U+1f3f3-1f3f4,U+1f6a9,U+e0062-e0063,U+e0065,U+e0067,U+e006c,U+e006e,U+e0073-e0074,U+e0077,U+e007f;
18
19
  }
19
- /* noto-emoji-[2]-400-normal*/
20
+
21
+ /* noto-emoji-[2]-400-normal */
20
22
  @font-face {
21
23
  font-family: 'Noto Emoji';
22
24
  font-style: normal;
23
- font-display: swap;
25
+ font-display: var(--fontsource-display, swap);
24
26
  font-weight: 400;
25
- src: url('./files/noto-emoji-2-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
27
+ src: url(./files/noto-emoji-2-400-normal.woff2) format('woff2'), url(./files/noto-emoji-2-400-normal.woff) format('woff');
26
28
  unicode-range: U+23,U+2a,U+30-39,U+a9,U+ae,U+200d,U+203c,U+2049,U+20e3,U+2122,U+2139,U+2194-2199,U+21a9-21aa,U+23cf,U+23e9-23ef,U+23f8-23fa,U+24c2,U+25aa-25ab,U+25b6,U+25c0,U+25fb-25fe,U+2611,U+2622-2623,U+2626,U+262a,U+262e-262f,U+2638,U+2640,U+2642,U+2648-2653,U+2660,U+2663,U+2665-2666,U+2668,U+267b,U+267e-267f,U+2695,U+269b-269c,U+26a0,U+26a7,U+26aa-26ab,U+26ce,U+26d4,U+2705,U+2714,U+2716,U+271d,U+2721,U+2733-2734,U+2747,U+274c,U+274e,U+2753-2755,U+2757,U+2764,U+2795-2797,U+27a1,U+27b0,U+27bf,U+2934-2935,U+2b05-2b07,U+2b1b-2b1c,U+2b55,U+3030,U+303d,U+3297,U+3299,U+fe0f,U+1f170-1f171,U+1f17e-1f17f,U+1f18e,U+1f191-1f19a,U+1f201-1f202,U+1f21a,U+1f22f,U+1f232-1f23a,U+1f250-1f251,U+1f310,U+1f3a6,U+1f3b5-1f3b6,U+1f3bc,U+1f3e7,U+1f441,U+1f499-1f49c,U+1f49f-1f4a0,U+1f4a2,U+1f4ac-1f4ad,U+1f4b1-1f4b2,U+1f4b9,U+1f4db,U+1f4f2-1f4f6,U+1f500-1f50a,U+1f515,U+1f518-1f524,U+1f52f-1f53d,U+1f549,U+1f54e,U+1f5a4,U+1f5e8,U+1f5ef,U+1f6ab,U+1f6ad-1f6b1,U+1f6b3,U+1f6b7-1f6bc,U+1f6be,U+1f6c2-1f6c5,U+1f6d0-1f6d1,U+1f6d7,U+1f6dc,U+1f7e0-1f7eb,U+1f7f0,U+1f90d-1f90e,U+1f9e1,U+1fa75-1fa77,U+1faaf;
27
29
  }
28
- /* noto-emoji-[3]-400-normal*/
30
+
31
+ /* noto-emoji-[3]-400-normal */
29
32
  @font-face {
30
33
  font-family: 'Noto Emoji';
31
34
  font-style: normal;
32
- font-display: swap;
35
+ font-display: var(--fontsource-display, swap);
33
36
  font-weight: 400;
34
- src: url('./files/noto-emoji-3-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
37
+ src: url(./files/noto-emoji-3-400-normal.woff2) format('woff2'), url(./files/noto-emoji-3-400-normal.woff) format('woff');
35
38
  unicode-range: U+231a-231b,U+2328,U+23f0-23f3,U+2602,U+260e,U+2692,U+2694,U+2696-2697,U+2699,U+26b0-26b1,U+26cf,U+26d1,U+26d3,U+2702,U+2709,U+270f,U+2712,U+fe0f,U+1f302,U+1f321,U+1f392-1f393,U+1f3a9,U+1f3bd,U+1f3ee,U+1f3f7,U+1f3fa,U+1f451-1f462,U+1f484,U+1f489-1f48a,U+1f48c-1f48e,U+1f4a1,U+1f4a3,U+1f4b0,U+1f4b3-1f4b8,U+1f4bb-1f4da,U+1f4dc-1f4f1,U+1f4ff,U+1f50b-1f514,U+1f516-1f517,U+1f526-1f529,U+1f52c-1f52e,U+1f550-1f567,U+1f56f-1f570,U+1f576,U+1f587,U+1f58a-1f58d,U+1f5a5,U+1f5a8,U+1f5b1-1f5b2,U+1f5c2-1f5c4,U+1f5d1-1f5d3,U+1f5dc-1f5de,U+1f5e1,U+1f5f3,U+1f6aa,U+1f6ac,U+1f6bd,U+1f6bf,U+1f6c1,U+1f6cb,U+1f6cd-1f6cf,U+1f6d2,U+1f6e0-1f6e1,U+1f6f0,U+1f97b-1f97f,U+1f9af,U+1f9ba,U+1f9e2-1f9e6,U+1f9ea-1f9ec,U+1f9ee-1f9f4,U+1f9f7-1f9ff,U+1fa71-1fa74,U+1fa79-1fa7b,U+1fa86,U+1fa91-1fa93,U+1fa96,U+1fa99-1faa0,U+1faa2-1faa7,U+1faaa-1faae;
36
39
  }
37
- /* noto-emoji-[4]-400-normal*/
40
+
41
+ /* noto-emoji-[4]-400-normal */
38
42
  @font-face {
39
43
  font-family: 'Noto Emoji';
40
44
  font-style: normal;
41
- font-display: swap;
45
+ font-display: var(--fontsource-display, swap);
42
46
  font-weight: 400;
43
- src: url('./files/noto-emoji-4-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
47
+ src: url(./files/noto-emoji-4-400-normal.woff2) format('woff2'), url(./files/noto-emoji-4-400-normal.woff) format('woff');
44
48
  unicode-range: U+265f,U+26bd-26be,U+26f3,U+26f8,U+fe0f,U+1f004,U+1f0cf,U+1f380-1f384,U+1f386-1f38b,U+1f38d-1f391,U+1f396-1f397,U+1f399-1f39b,U+1f39e-1f39f,U+1f3a3-1f3a5,U+1f3a7-1f3a9,U+1f3ab-1f3b4,U+1f3b7-1f3bb,U+1f3bd-1f3c0,U+1f3c5-1f3c6,U+1f3c8-1f3c9,U+1f3cf-1f3d3,U+1f3f8-1f3f9,U+1f47e,U+1f4e2,U+1f4f7-1f4fd,U+1f52b,U+1f579,U+1f58c-1f58d,U+1f5bc,U+1f6f7,U+1f6f9,U+1f6fc,U+1f93f,U+1f941,U+1f945,U+1f947-1f94f,U+1f9e7-1f9e9,U+1f9f5-1f9f6,U+1fa70-1fa71,U+1fa80-1fa81,U+1fa83-1fa85,U+1fa87-1fa88,U+1fa94-1fa95,U+1fa97-1fa98,U+1faa1,U+1faa9;
45
49
  }
46
- /* noto-emoji-[5]-400-normal*/
50
+
51
+ /* noto-emoji-[5]-400-normal */
47
52
  @font-face {
48
53
  font-family: 'Noto Emoji';
49
54
  font-style: normal;
50
- font-display: swap;
55
+ font-display: var(--fontsource-display, swap);
51
56
  font-weight: 400;
52
- src: url('./files/noto-emoji-5-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
57
+ src: url(./files/noto-emoji-5-400-normal.woff2) format('woff2'), url(./files/noto-emoji-5-400-normal.woff) format('woff');
53
58
  unicode-range: U+2693,U+26e9-26ea,U+26f1-26f2,U+26f4-26f5,U+26fa,U+26fd,U+2708,U+fe0f,U+1f301,U+1f303,U+1f306-1f307,U+1f309,U+1f310,U+1f3a0-1f3a2,U+1f3aa,U+1f3cd-1f3ce,U+1f3d5,U+1f3d7-1f3db,U+1f3df-1f3e6,U+1f3e8-1f3ed,U+1f3ef-1f3f0,U+1f488,U+1f492,U+1f4ba,U+1f54b-1f54d,U+1f5fa-1f5ff,U+1f680-1f6a2,U+1f6a4-1f6a8,U+1f6b2,U+1f6d1,U+1f6d5-1f6d6,U+1f6dd-1f6df,U+1f6e2-1f6e5,U+1f6e9,U+1f6eb-1f6ec,U+1f6f3-1f6f6,U+1f6f8,U+1f6fa-1f6fb,U+1f9bc-1f9bd,U+1f9ed,U+1f9f3,U+1fa7c;
54
59
  }
55
- /* noto-emoji-[6]-400-normal*/
60
+
61
+ /* noto-emoji-[6]-400-normal */
56
62
  @font-face {
57
63
  font-family: 'Noto Emoji';
58
64
  font-style: normal;
59
- font-display: swap;
65
+ font-display: var(--fontsource-display, swap);
60
66
  font-weight: 400;
61
- src: url('./files/noto-emoji-6-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
67
+ src: url(./files/noto-emoji-6-400-normal.woff2) format('woff2'), url(./files/noto-emoji-6-400-normal.woff) format('woff');
62
68
  unicode-range: U+2615,U+fe0f,U+1f32d-1f330,U+1f336,U+1f33d,U+1f345-1f37f,U+1f382,U+1f52a,U+1f942-1f944,U+1f950-1f96f,U+1f99e,U+1f9aa,U+1f9c0-1f9cb,U+1fad0-1fadb;
63
69
  }
64
- /* noto-emoji-[7]-400-normal*/
70
+
71
+ /* noto-emoji-[7]-400-normal */
65
72
  @font-face {
66
73
  font-family: 'Noto Emoji';
67
74
  font-style: normal;
68
- font-display: swap;
75
+ font-display: var(--fontsource-display, swap);
69
76
  font-weight: 400;
70
- src: url('./files/noto-emoji-7-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
77
+ src: url(./files/noto-emoji-7-400-normal.woff2) format('woff2'), url(./files/noto-emoji-7-400-normal.woff) format('woff');
71
78
  unicode-range: U+200d,U+2600-2601,U+2603-2604,U+2614,U+2618,U+26a1,U+26c4-26c5,U+26c8,U+26f0,U+2728,U+2744,U+2b1b,U+2b50,U+fe0f,U+1f300,U+1f304-1f305,U+1f308,U+1f30a-1f30f,U+1f311-1f321,U+1f324-1f32c,U+1f331-1f335,U+1f337-1f33c,U+1f33e-1f344,U+1f3d4,U+1f3d6,U+1f3dc-1f3de,U+1f3f5,U+1f400-1f43f,U+1f490,U+1f4a7,U+1f4ab,U+1f4ae,U+1f525,U+1f54a,U+1f573,U+1f577-1f578,U+1f648-1f64a,U+1f940,U+1f980-1f9ae,U+1f9ba,U+1fa90,U+1faa8,U+1fab0-1fabd,U+1fabf,U+1face-1facf,U+1fae7;
72
79
  }
73
- /* noto-emoji-[8]-400-normal*/
80
+
81
+ /* noto-emoji-[8]-400-normal */
74
82
  @font-face {
75
83
  font-family: 'Noto Emoji';
76
84
  font-style: normal;
77
- font-display: swap;
85
+ font-display: var(--fontsource-display, swap);
78
86
  font-weight: 400;
79
- src: url('./files/noto-emoji-8-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
87
+ src: url(./files/noto-emoji-8-400-normal.woff2) format('woff2'), url(./files/noto-emoji-8-400-normal.woff) format('woff');
80
88
  unicode-range: U+200d,U+2640,U+2642,U+2695-2696,U+26f7,U+26f9,U+2708,U+2764,U+fe0f,U+1f33e,U+1f373,U+1f37c,U+1f384-1f385,U+1f393,U+1f3a4,U+1f3a8,U+1f3c2-1f3c4,U+1f3c7,U+1f3ca-1f3cc,U+1f3eb,U+1f3ed,U+1f3fb-1f3ff,U+1f466-1f478,U+1f47c,U+1f481-1f483,U+1f486-1f487,U+1f48b,U+1f48f,U+1f491,U+1f4bb-1f4bc,U+1f527,U+1f52c,U+1f574-1f575,U+1f57a,U+1f645-1f647,U+1f64b,U+1f64d-1f64e,U+1f680,U+1f692,U+1f6a3,U+1f6b4-1f6b6,U+1f6c0,U+1f6cc,U+1f91d,U+1f926,U+1f930-1f931,U+1f934-1f93a,U+1f93c-1f93e,U+1f977,U+1f9af-1f9b3,U+1f9b8-1f9b9,U+1f9bc-1f9bd,U+1f9cc-1f9cf,U+1f9d1-1f9df,U+1fa82,U+1fac3-1fac5;
81
89
  }
82
- /* noto-emoji-[9]-400-normal*/
90
+
91
+ /* noto-emoji-[9]-400-normal */
83
92
  @font-face {
84
93
  font-family: 'Noto Emoji';
85
94
  font-style: normal;
86
- font-display: swap;
95
+ font-display: var(--fontsource-display, swap);
87
96
  font-weight: 400;
88
- src: url('./files/noto-emoji-9-400-normal.woff2') format('woff2'), url('./files/noto-emoji-all-400-normal.woff') format('woff');
97
+ src: url(./files/noto-emoji-9-400-normal.woff2) format('woff2'), url(./files/noto-emoji-9-400-normal.woff) format('woff');
89
98
  unicode-range: U+200d,U+261d,U+2620,U+2639-263a,U+2665,U+270a-270d,U+2728,U+2763-2764,U+2b50,U+fe0f,U+1f31a-1f31f,U+1f32b,U+1f383,U+1f389,U+1f3fb-1f3ff,U+1f440-1f450,U+1f463-1f465,U+1f479-1f47b,U+1f47d-1f480,U+1f485,U+1f48b-1f48c,U+1f493-1f49f,U+1f4a4-1f4a6,U+1f4a8-1f4ab,U+1f4af,U+1f525,U+1f573,U+1f590,U+1f595-1f596,U+1f5a4,U+1f5e3,U+1f600-1f644,U+1f648-1f64a,U+1f64c,U+1f64f,U+1f90c-1f925,U+1f927-1f92f,U+1f932-1f933,U+1f970-1f976,U+1f978-1f97a,U+1f9a0,U+1f9b4-1f9b7,U+1f9bb,U+1f9be-1f9bf,U+1f9d0,U+1f9e0-1f9e1,U+1fa75-1fa79,U+1fac0-1fac2,U+1fae0-1fae6,U+1fae8,U+1faf0-1faf8;
90
- }
99
+ }
package/metadata.json CHANGED
@@ -1 +1,21 @@
1
- {"fontId":"noto-emoji","fontName":"Noto Emoji","subsets":["emoji"],"weights":[300,400,500,600,700],"styles":["normal"],"defSubset":"emoji","variable":{"wght":{"default":"400","min":"300","max":"700","step":"1"}},"lastModified":"2022-09-26","version":"v34","category":"sans-serif","source":"https://fonts.google.com/","license":"https://fonts.google.com/attribution","type":"google"}
1
+ {
2
+ "id": "noto-emoji",
3
+ "family": "Noto Emoji",
4
+ "subsets": ["emoji"],
5
+ "weights": [300, 400, 500, 600, 700],
6
+ "styles": ["normal"],
7
+ "defSubset": "emoji",
8
+ "variable": {
9
+ "wght": {"default": "400", "min": "300", "max": "700", "step": "1"}
10
+ },
11
+ "lastModified": "2023-03-21",
12
+ "version": "v39",
13
+ "category": "sans-serif",
14
+ "license": {
15
+ "type": "OFL-1.1",
16
+ "url": "http://scripts.sil.org/OFL",
17
+ "attribution": "Copyright Google Inc. All Rights Reserved."
18
+ },
19
+ "source": "https://github.com/google/fonts",
20
+ "type": "google"
21
+ }
package/package.json CHANGED
@@ -1 +1,29 @@
1
- {"name":"@fontsource/noto-emoji","version":"4.5.6","description":"Self-host the Noto Emoji font in a neatly bundled NPM package.","main":"index.css","publishConfig":{"access":"public"},"keywords":["fontsource","font","font family","google fonts","Noto Emoji","noto-emoji","css","sass","front-end","web","typeface"],"author":"Lotus <declininglotus@gmail.com>","license":"MIT","homepage":"https://github.com/fontsource/fontsource/tree/main/fonts/google/noto-emoji#readme","repository":{"type":"git","url":"https://github.com/fontsource/fontsource.git","directory":"fonts/google/noto-emoji"}}
1
+ {
2
+ "name": "@fontsource/noto-emoji",
3
+ "version": "5.0.0",
4
+ "description": "Self-host the Noto Emoji font in a neatly bundled NPM package.",
5
+ "main": "index.css",
6
+ "publishConfig": {"access": "public"},
7
+ "keywords": [
8
+ "fontsource",
9
+ "font",
10
+ "font family",
11
+ "google fonts",
12
+ "noto-emoji",
13
+ "Noto Emoji",
14
+ "css",
15
+ "sass",
16
+ "front-end",
17
+ "web",
18
+ "typeface",
19
+ "variable"
20
+ ],
21
+ "author": "Google Inc.",
22
+ "license": "OFL-1.1",
23
+ "homepage": "https://fontsource.org/fonts/noto-emoji",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/fontsource/font-files.git",
27
+ "directory": "fonts/google/noto-emoji"
28
+ }
29
+ }
@@ -0,0 +1,25 @@
1
+ $id: 'noto-emoji' !default;
2
+ $family: 'Noto Emoji' !default;
3
+ $category: sans-serif !default;
4
+ $subsets: (emoji) !default;
5
+ $weights: (300, 400, 500, 600, 700) !default;
6
+ $styles: (normal) !default;
7
+ $axes: null !default;
8
+ $defaults: (
9
+ subset: emoji,
10
+ weight: 400,
11
+ style: normal,
12
+ axis: null,
13
+ ) !default;
14
+ $unicode: (
15
+ 0: (U+1f1e6-1f1ff),
16
+ 1: (U+200d,U+2620,U+26a7,U+fe0f,U+1f308,U+1f38c,U+1f3c1,U+1f3f3-1f3f4,U+1f6a9,U+e0062-e0063,U+e0065,U+e0067,U+e006c,U+e006e,U+e0073-e0074,U+e0077,U+e007f),
17
+ 2: (U+23,U+2a,U+30-39,U+a9,U+ae,U+200d,U+203c,U+2049,U+20e3,U+2122,U+2139,U+2194-2199,U+21a9-21aa,U+23cf,U+23e9-23ef,U+23f8-23fa,U+24c2,U+25aa-25ab,U+25b6,U+25c0,U+25fb-25fe,U+2611,U+2622-2623,U+2626,U+262a,U+262e-262f,U+2638,U+2640,U+2642,U+2648-2653,U+2660,U+2663,U+2665-2666,U+2668,U+267b,U+267e-267f,U+2695,U+269b-269c,U+26a0,U+26a7,U+26aa-26ab,U+26ce,U+26d4,U+2705,U+2714,U+2716,U+271d,U+2721,U+2733-2734,U+2747,U+274c,U+274e,U+2753-2755,U+2757,U+2764,U+2795-2797,U+27a1,U+27b0,U+27bf,U+2934-2935,U+2b05-2b07,U+2b1b-2b1c,U+2b55,U+3030,U+303d,U+3297,U+3299,U+fe0f,U+1f170-1f171,U+1f17e-1f17f,U+1f18e,U+1f191-1f19a,U+1f201-1f202,U+1f21a,U+1f22f,U+1f232-1f23a,U+1f250-1f251,U+1f310,U+1f3a6,U+1f3b5-1f3b6,U+1f3bc,U+1f3e7,U+1f441,U+1f499-1f49c,U+1f49f-1f4a0,U+1f4a2,U+1f4ac-1f4ad,U+1f4b1-1f4b2,U+1f4b9,U+1f4db,U+1f4f2-1f4f6,U+1f500-1f50a,U+1f515,U+1f518-1f524,U+1f52f-1f53d,U+1f549,U+1f54e,U+1f5a4,U+1f5e8,U+1f5ef,U+1f6ab,U+1f6ad-1f6b1,U+1f6b3,U+1f6b7-1f6bc,U+1f6be,U+1f6c2-1f6c5,U+1f6d0-1f6d1,U+1f6d7,U+1f6dc,U+1f7e0-1f7eb,U+1f7f0,U+1f90d-1f90e,U+1f9e1,U+1fa75-1fa77,U+1faaf),
18
+ 3: (U+231a-231b,U+2328,U+23f0-23f3,U+2602,U+260e,U+2692,U+2694,U+2696-2697,U+2699,U+26b0-26b1,U+26cf,U+26d1,U+26d3,U+2702,U+2709,U+270f,U+2712,U+fe0f,U+1f302,U+1f321,U+1f392-1f393,U+1f3a9,U+1f3bd,U+1f3ee,U+1f3f7,U+1f3fa,U+1f451-1f462,U+1f484,U+1f489-1f48a,U+1f48c-1f48e,U+1f4a1,U+1f4a3,U+1f4b0,U+1f4b3-1f4b8,U+1f4bb-1f4da,U+1f4dc-1f4f1,U+1f4ff,U+1f50b-1f514,U+1f516-1f517,U+1f526-1f529,U+1f52c-1f52e,U+1f550-1f567,U+1f56f-1f570,U+1f576,U+1f587,U+1f58a-1f58d,U+1f5a5,U+1f5a8,U+1f5b1-1f5b2,U+1f5c2-1f5c4,U+1f5d1-1f5d3,U+1f5dc-1f5de,U+1f5e1,U+1f5f3,U+1f6aa,U+1f6ac,U+1f6bd,U+1f6bf,U+1f6c1,U+1f6cb,U+1f6cd-1f6cf,U+1f6d2,U+1f6e0-1f6e1,U+1f6f0,U+1f97b-1f97f,U+1f9af,U+1f9ba,U+1f9e2-1f9e6,U+1f9ea-1f9ec,U+1f9ee-1f9f4,U+1f9f7-1f9ff,U+1fa71-1fa74,U+1fa79-1fa7b,U+1fa86,U+1fa91-1fa93,U+1fa96,U+1fa99-1faa0,U+1faa2-1faa7,U+1faaa-1faae),
19
+ 4: (U+265f,U+26bd-26be,U+26f3,U+26f8,U+fe0f,U+1f004,U+1f0cf,U+1f380-1f384,U+1f386-1f38b,U+1f38d-1f391,U+1f396-1f397,U+1f399-1f39b,U+1f39e-1f39f,U+1f3a3-1f3a5,U+1f3a7-1f3a9,U+1f3ab-1f3b4,U+1f3b7-1f3bb,U+1f3bd-1f3c0,U+1f3c5-1f3c6,U+1f3c8-1f3c9,U+1f3cf-1f3d3,U+1f3f8-1f3f9,U+1f47e,U+1f4e2,U+1f4f7-1f4fd,U+1f52b,U+1f579,U+1f58c-1f58d,U+1f5bc,U+1f6f7,U+1f6f9,U+1f6fc,U+1f93f,U+1f941,U+1f945,U+1f947-1f94f,U+1f9e7-1f9e9,U+1f9f5-1f9f6,U+1fa70-1fa71,U+1fa80-1fa81,U+1fa83-1fa85,U+1fa87-1fa88,U+1fa94-1fa95,U+1fa97-1fa98,U+1faa1,U+1faa9),
20
+ 5: (U+2693,U+26e9-26ea,U+26f1-26f2,U+26f4-26f5,U+26fa,U+26fd,U+2708,U+fe0f,U+1f301,U+1f303,U+1f306-1f307,U+1f309,U+1f310,U+1f3a0-1f3a2,U+1f3aa,U+1f3cd-1f3ce,U+1f3d5,U+1f3d7-1f3db,U+1f3df-1f3e6,U+1f3e8-1f3ed,U+1f3ef-1f3f0,U+1f488,U+1f492,U+1f4ba,U+1f54b-1f54d,U+1f5fa-1f5ff,U+1f680-1f6a2,U+1f6a4-1f6a8,U+1f6b2,U+1f6d1,U+1f6d5-1f6d6,U+1f6dd-1f6df,U+1f6e2-1f6e5,U+1f6e9,U+1f6eb-1f6ec,U+1f6f3-1f6f6,U+1f6f8,U+1f6fa-1f6fb,U+1f9bc-1f9bd,U+1f9ed,U+1f9f3,U+1fa7c),
21
+ 6: (U+2615,U+fe0f,U+1f32d-1f330,U+1f336,U+1f33d,U+1f345-1f37f,U+1f382,U+1f52a,U+1f942-1f944,U+1f950-1f96f,U+1f99e,U+1f9aa,U+1f9c0-1f9cb,U+1fad0-1fadb),
22
+ 7: (U+200d,U+2600-2601,U+2603-2604,U+2614,U+2618,U+26a1,U+26c4-26c5,U+26c8,U+26f0,U+2728,U+2744,U+2b1b,U+2b50,U+fe0f,U+1f300,U+1f304-1f305,U+1f308,U+1f30a-1f30f,U+1f311-1f321,U+1f324-1f32c,U+1f331-1f335,U+1f337-1f33c,U+1f33e-1f344,U+1f3d4,U+1f3d6,U+1f3dc-1f3de,U+1f3f5,U+1f400-1f43f,U+1f490,U+1f4a7,U+1f4ab,U+1f4ae,U+1f525,U+1f54a,U+1f573,U+1f577-1f578,U+1f648-1f64a,U+1f940,U+1f980-1f9ae,U+1f9ba,U+1fa90,U+1faa8,U+1fab0-1fabd,U+1fabf,U+1face-1facf,U+1fae7),
23
+ 8: (U+200d,U+2640,U+2642,U+2695-2696,U+26f7,U+26f9,U+2708,U+2764,U+fe0f,U+1f33e,U+1f373,U+1f37c,U+1f384-1f385,U+1f393,U+1f3a4,U+1f3a8,U+1f3c2-1f3c4,U+1f3c7,U+1f3ca-1f3cc,U+1f3eb,U+1f3ed,U+1f3fb-1f3ff,U+1f466-1f478,U+1f47c,U+1f481-1f483,U+1f486-1f487,U+1f48b,U+1f48f,U+1f491,U+1f4bb-1f4bc,U+1f527,U+1f52c,U+1f574-1f575,U+1f57a,U+1f645-1f647,U+1f64b,U+1f64d-1f64e,U+1f680,U+1f692,U+1f6a3,U+1f6b4-1f6b6,U+1f6c0,U+1f6cc,U+1f91d,U+1f926,U+1f930-1f931,U+1f934-1f93a,U+1f93c-1f93e,U+1f977,U+1f9af-1f9b3,U+1f9b8-1f9b9,U+1f9bc-1f9bd,U+1f9cc-1f9cf,U+1f9d1-1f9df,U+1fa82,U+1fac3-1fac5),
24
+ 9: (U+200d,U+261d,U+2620,U+2639-263a,U+2665,U+270a-270d,U+2728,U+2763-2764,U+2b50,U+fe0f,U+1f31a-1f31f,U+1f32b,U+1f383,U+1f389,U+1f3fb-1f3ff,U+1f440-1f450,U+1f463-1f465,U+1f479-1f47b,U+1f47d-1f480,U+1f485,U+1f48b-1f48c,U+1f493-1f49f,U+1f4a4-1f4a6,U+1f4a8-1f4ab,U+1f4af,U+1f525,U+1f573,U+1f590,U+1f595-1f596,U+1f5a4,U+1f5e3,U+1f600-1f644,U+1f648-1f64a,U+1f64c,U+1f64f,U+1f90c-1f925,U+1f927-1f92f,U+1f932-1f933,U+1f970-1f976,U+1f978-1f97a,U+1f9a0,U+1f9b4-1f9b7,U+1f9bb,U+1f9be-1f9bf,U+1f9d0,U+1f9e0-1f9e1,U+1fa75-1fa79,U+1fac0-1fac2,U+1fae0-1fae6,U+1fae8,U+1faf0-1faf8),
25
+ ) !default;
package/scss/mixins.scss CHANGED
@@ -1,124 +1,179 @@
1
- $fontName: "Noto Emoji";
2
- $fontId: "noto-emoji";
3
- $style: normal;
4
- $display: swap;
5
- $weight: 400;
6
- $fontDir: "~@fontsource/#{$fontId}/files";
7
- $unicodeMap: (0: (U+1f1e6-1f1ff), 1: (U+200d,U+2620,U+26a7,U+fe0f,U+1f308,U+1f38c,U+1f3c1,U+1f3f3-1f3f4,U+1f6a9,U+e0062-e0063,U+e0065,U+e0067,U+e006c,U+e006e,U+e0073-e0074,U+e0077,U+e007f), 2: (U+23,U+2a,U+30-39,U+a9,U+ae,U+200d,U+203c,U+2049,U+20e3,U+2122,U+2139,U+2194-2199,U+21a9-21aa,U+23cf,U+23e9-23ef,U+23f8-23fa,U+24c2,U+25aa-25ab,U+25b6,U+25c0,U+25fb-25fe,U+2611,U+2622-2623,U+2626,U+262a,U+262e-262f,U+2638,U+2640,U+2642,U+2648-2653,U+2660,U+2663,U+2665-2666,U+2668,U+267b,U+267e-267f,U+2695,U+269b-269c,U+26a0,U+26a7,U+26aa-26ab,U+26ce,U+26d4,U+2705,U+2714,U+2716,U+271d,U+2721,U+2733-2734,U+2747,U+274c,U+274e,U+2753-2755,U+2757,U+2764,U+2795-2797,U+27a1,U+27b0,U+27bf,U+2934-2935,U+2b05-2b07,U+2b1b-2b1c,U+2b55,U+3030,U+303d,U+3297,U+3299,U+fe0f,U+1f170-1f171,U+1f17e-1f17f,U+1f18e,U+1f191-1f19a,U+1f201-1f202,U+1f21a,U+1f22f,U+1f232-1f23a,U+1f250-1f251,U+1f310,U+1f3a6,U+1f3b5-1f3b6,U+1f3bc,U+1f3e7,U+1f441,U+1f499-1f49c,U+1f49f-1f4a0,U+1f4a2,U+1f4ac-1f4ad,U+1f4b1-1f4b2,U+1f4b9,U+1f4db,U+1f4f2-1f4f6,U+1f500-1f50a,U+1f515,U+1f518-1f524,U+1f52f-1f53d,U+1f549,U+1f54e,U+1f5a4,U+1f5e8,U+1f5ef,U+1f6ab,U+1f6ad-1f6b1,U+1f6b3,U+1f6b7-1f6bc,U+1f6be,U+1f6c2-1f6c5,U+1f6d0-1f6d1,U+1f6d7,U+1f6dc,U+1f7e0-1f7eb,U+1f7f0,U+1f90d-1f90e,U+1f9e1,U+1fa75-1fa77,U+1faaf), 3: (U+231a-231b,U+2328,U+23f0-23f3,U+2602,U+260e,U+2692,U+2694,U+2696-2697,U+2699,U+26b0-26b1,U+26cf,U+26d1,U+26d3,U+2702,U+2709,U+270f,U+2712,U+fe0f,U+1f302,U+1f321,U+1f392-1f393,U+1f3a9,U+1f3bd,U+1f3ee,U+1f3f7,U+1f3fa,U+1f451-1f462,U+1f484,U+1f489-1f48a,U+1f48c-1f48e,U+1f4a1,U+1f4a3,U+1f4b0,U+1f4b3-1f4b8,U+1f4bb-1f4da,U+1f4dc-1f4f1,U+1f4ff,U+1f50b-1f514,U+1f516-1f517,U+1f526-1f529,U+1f52c-1f52e,U+1f550-1f567,U+1f56f-1f570,U+1f576,U+1f587,U+1f58a-1f58d,U+1f5a5,U+1f5a8,U+1f5b1-1f5b2,U+1f5c2-1f5c4,U+1f5d1-1f5d3,U+1f5dc-1f5de,U+1f5e1,U+1f5f3,U+1f6aa,U+1f6ac,U+1f6bd,U+1f6bf,U+1f6c1,U+1f6cb,U+1f6cd-1f6cf,U+1f6d2,U+1f6e0-1f6e1,U+1f6f0,U+1f97b-1f97f,U+1f9af,U+1f9ba,U+1f9e2-1f9e6,U+1f9ea-1f9ec,U+1f9ee-1f9f4,U+1f9f7-1f9ff,U+1fa71-1fa74,U+1fa79-1fa7b,U+1fa86,U+1fa91-1fa93,U+1fa96,U+1fa99-1faa0,U+1faa2-1faa7,U+1faaa-1faae), 4: (U+265f,U+26bd-26be,U+26f3,U+26f8,U+fe0f,U+1f004,U+1f0cf,U+1f380-1f384,U+1f386-1f38b,U+1f38d-1f391,U+1f396-1f397,U+1f399-1f39b,U+1f39e-1f39f,U+1f3a3-1f3a5,U+1f3a7-1f3a9,U+1f3ab-1f3b4,U+1f3b7-1f3bb,U+1f3bd-1f3c0,U+1f3c5-1f3c6,U+1f3c8-1f3c9,U+1f3cf-1f3d3,U+1f3f8-1f3f9,U+1f47e,U+1f4e2,U+1f4f7-1f4fd,U+1f52b,U+1f579,U+1f58c-1f58d,U+1f5bc,U+1f6f7,U+1f6f9,U+1f6fc,U+1f93f,U+1f941,U+1f945,U+1f947-1f94f,U+1f9e7-1f9e9,U+1f9f5-1f9f6,U+1fa70-1fa71,U+1fa80-1fa81,U+1fa83-1fa85,U+1fa87-1fa88,U+1fa94-1fa95,U+1fa97-1fa98,U+1faa1,U+1faa9), 5: (U+2693,U+26e9-26ea,U+26f1-26f2,U+26f4-26f5,U+26fa,U+26fd,U+2708,U+fe0f,U+1f301,U+1f303,U+1f306-1f307,U+1f309,U+1f310,U+1f3a0-1f3a2,U+1f3aa,U+1f3cd-1f3ce,U+1f3d5,U+1f3d7-1f3db,U+1f3df-1f3e6,U+1f3e8-1f3ed,U+1f3ef-1f3f0,U+1f488,U+1f492,U+1f4ba,U+1f54b-1f54d,U+1f5fa-1f5ff,U+1f680-1f6a2,U+1f6a4-1f6a8,U+1f6b2,U+1f6d1,U+1f6d5-1f6d6,U+1f6dd-1f6df,U+1f6e2-1f6e5,U+1f6e9,U+1f6eb-1f6ec,U+1f6f3-1f6f6,U+1f6f8,U+1f6fa-1f6fb,U+1f9bc-1f9bd,U+1f9ed,U+1f9f3,U+1fa7c), 6: (U+2615,U+fe0f,U+1f32d-1f330,U+1f336,U+1f33d,U+1f345-1f37f,U+1f382,U+1f52a,U+1f942-1f944,U+1f950-1f96f,U+1f99e,U+1f9aa,U+1f9c0-1f9cb,U+1fad0-1fadb), 7: (U+200d,U+2600-2601,U+2603-2604,U+2614,U+2618,U+26a1,U+26c4-26c5,U+26c8,U+26f0,U+2728,U+2744,U+2b1b,U+2b50,U+fe0f,U+1f300,U+1f304-1f305,U+1f308,U+1f30a-1f30f,U+1f311-1f321,U+1f324-1f32c,U+1f331-1f335,U+1f337-1f33c,U+1f33e-1f344,U+1f3d4,U+1f3d6,U+1f3dc-1f3de,U+1f3f5,U+1f400-1f43f,U+1f490,U+1f4a7,U+1f4ab,U+1f4ae,U+1f525,U+1f54a,U+1f573,U+1f577-1f578,U+1f648-1f64a,U+1f940,U+1f980-1f9ae,U+1f9ba,U+1fa90,U+1faa8,U+1fab0-1fabd,U+1fabf,U+1face-1facf,U+1fae7), 8: (U+200d,U+2640,U+2642,U+2695-2696,U+26f7,U+26f9,U+2708,U+2764,U+fe0f,U+1f33e,U+1f373,U+1f37c,U+1f384-1f385,U+1f393,U+1f3a4,U+1f3a8,U+1f3c2-1f3c4,U+1f3c7,U+1f3ca-1f3cc,U+1f3eb,U+1f3ed,U+1f3fb-1f3ff,U+1f466-1f478,U+1f47c,U+1f481-1f483,U+1f486-1f487,U+1f48b,U+1f48f,U+1f491,U+1f4bb-1f4bc,U+1f527,U+1f52c,U+1f574-1f575,U+1f57a,U+1f645-1f647,U+1f64b,U+1f64d-1f64e,U+1f680,U+1f692,U+1f6a3,U+1f6b4-1f6b6,U+1f6c0,U+1f6cc,U+1f91d,U+1f926,U+1f930-1f931,U+1f934-1f93a,U+1f93c-1f93e,U+1f977,U+1f9af-1f9b3,U+1f9b8-1f9b9,U+1f9bc-1f9bd,U+1f9cc-1f9cf,U+1f9d1-1f9df,U+1fa82,U+1fac3-1fac5), 9: (U+200d,U+261d,U+2620,U+2639-263a,U+2665,U+270a-270d,U+2728,U+2763-2764,U+2b50,U+fe0f,U+1f31a-1f31f,U+1f32b,U+1f383,U+1f389,U+1f3fb-1f3ff,U+1f440-1f450,U+1f463-1f465,U+1f479-1f47b,U+1f47d-1f480,U+1f485,U+1f48b-1f48c,U+1f493-1f49f,U+1f4a4-1f4a6,U+1f4a8-1f4ab,U+1f4af,U+1f525,U+1f573,U+1f590,U+1f595-1f596,U+1f5a4,U+1f5e3,U+1f600-1f644,U+1f648-1f64a,U+1f64c,U+1f64f,U+1f90c-1f925,U+1f927-1f92f,U+1f932-1f933,U+1f970-1f976,U+1f978-1f97a,U+1f9a0,U+1f9b4-1f9b7,U+1f9bb,U+1f9be-1f9bf,U+1f9d0,U+1f9e0-1f9e1,U+1fa75-1fa79,U+1fac0-1fac2,U+1fae0-1fae6,U+1fae8,U+1faf0-1faf8));
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+ @use 'sass:meta';
5
+ @use 'sass:string';
8
6
 
9
- @mixin fontFace(
10
- $fontName: $fontName,
11
- $fontId: $fontId,
12
- $style: $style,
13
- $display: $display,
14
- $weight: $weight,
15
- $fontDir: $fontDir,
16
- $unicodeMap: $unicodeMap
17
- ) {
18
- @each $subset, $unicodeRangeValues in $unicodeMap {
19
- @font-face {
20
- font-family: "#{$fontName}";
21
- font-style: $style;
22
- font-display: $display;
23
- font-weight: $weight;
24
- src: url("#{$fontDir}/#{$fontId}-#{$subset}-#{$weight}-#{$style}.woff2") format("woff2"),
25
- url("#{$fontDir}/#{$fontId}-all-#{$weight}-#{$style}.woff") format("woff");
26
- unicode-range: $unicodeRangeValues;
27
- }
28
- }
29
- }
7
+ @use 'metadata';
30
8
 
31
- $defSubset: "emoji";
32
- $unicodeRange: false;
33
- $unicodeRangeValues: ();
9
+ $metadata: meta.module-variables(metadata) !default;
10
+ $directory: null !default;
34
11
 
35
- @mixin fontFaceCustom(
36
- $fontName: $fontName,
37
- $fontId: $fontId,
38
- $style: $style,
12
+ $family: null !default;
13
+ $display: null !default;
14
+ $displayVar: null !default;
15
+ $formats: null !default;
16
+ $subsets: null !default;
17
+ $weights: null !default;
18
+ $styles: null !default;
19
+ $axes: null !default;
20
+
21
+ @mixin generator(
22
+ $metadata: $metadata,
23
+ $directory: $directory,
24
+ $family: $family,
39
25
  $display: $display,
40
- $weight: $weight,
41
- $woff2Path: null,
42
- $woffPath: null,
43
- $unicodeRange: $unicodeRange,
44
- $unicodeRangeValues: $unicodeRangeValues
26
+ $displayVar: $displayVar,
27
+ $formats: $formats,
28
+ $subsets: $subsets,
29
+ $weights: $weights,
30
+ $styles: $styles,
31
+ $axes: $axes
45
32
  ) {
46
- @if $woffPath == null {
47
- $woffPath: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff";
48
- }
49
- @if $woff2Path == null {
50
- $woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff2";
51
- }
33
+ $directory: if(
34
+ $directory,
35
+ $directory,
36
+ '~@fontsource#{if(map.get($metadata, axes), '-variable', '')}/#{map.get($metadata, id)}/files'
37
+ );
52
38
 
53
- @font-face {
54
- font-family: "#{$fontName}";
55
- font-style: $style;
56
- font-display: $display;
57
- font-weight: $weight;
58
- src: url("#{$woff2Path}") format("woff2"), url("#{$woffPath}") format("woff");
59
- @if $unicodeRange {
60
- unicode-range: $unicodeRangeValues;
61
- }
62
- }
63
- }
39
+ $family: if(
40
+ $family,
41
+ $family,
42
+ map.get($metadata, family) + if(map.get($metadata, axes), ' Variable', '')
43
+ );
44
+ $display: if($display, $display, swap);
45
+ $displayVar: if($displayVar != null, $displayVar, true);
46
+ $formats: if(not $formats or $formats == all, (woff2, woff), $formats);
47
+ $subsets: if(
48
+ $subsets,
49
+ if($subsets == all, map.get($metadata, subsets), $subsets),
50
+ map.get($metadata, defaults, subset)
51
+ );
52
+ $weights: if(
53
+ $weights,
54
+ if($weights == all, map.get($metadata, weights), $weights),
55
+ map.get($metadata, defaults, weight)
56
+ );
57
+ $styles: if(
58
+ $styles,
59
+ if($styles == all, map.get($metadata, styles), $styles),
60
+ map.get($metadata, defaults, style)
61
+ );
62
+ $axes: if(
63
+ $axes,
64
+ if($axes == all, full, $axes),
65
+ if(map.get($metadata, axes), if(map.has-key($metadata, axes, wght), wght, full), null)
66
+ );
64
67
 
65
- $fontNameVariable: "Noto EmojiVariable";
66
- $weightVariable: 300 700;
67
- $type: "wghtOnly";
68
- $stretch: null;
68
+ @each $subset in $subsets {
69
+ @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) {
70
+ @if (
71
+ $subset ==
72
+ $unicodeSubset or
73
+ (
74
+ // Is numeric subset
75
+ $subset ==
76
+ map.get($metadata, defaults, subset) and not
77
+ list.index(map.get($metadata, subsets), $unicodeSubset)
78
+ )
79
+ ) {
80
+ @each $weight in if($axes, null, $weights) {
81
+ @each $axis in $axes {
82
+ @each $style in $styles {
83
+ $variant: '#{map.get($metadata, id)}-#{$unicodeSubset}-#{if($axis, $axis, $weight)}-#{$style}';
69
84
 
70
- @mixin fontFaceVariable(
71
- $fontName: $fontNameVariable,
72
- $fontId: $fontId,
73
- $style: $style,
74
- $display: $display,
75
- $weight: $weightVariable,
76
- $fontDir: $fontDir,
77
- $type: $type,
78
- $stretch: $stretch,
79
- $unicodeMap: $unicodeMap
80
- ) {
81
- @each $subset, $unicodeRangeValues in $unicodeMap {
82
- @font-face {
83
- font-family: "#{$fontName}";
84
- font-style: $style;
85
- font-display: $display;
86
- font-weight: $weight;
87
- @if $type == "full" {
88
- font-stretch: $stretch;
85
+ $src: ();
86
+ @each $format in $formats {
87
+ $src: append(
88
+ $src,
89
+ url('#{$directory}/#{$variant}.#{$format}')
90
+ format('#{$format}#{if($axis, '-variations', '')}'),
91
+ comma
92
+ );
93
+ }
94
+
95
+ @content ((
96
+ metadata: $metadata,
97
+ directory: $directory,
98
+ family: $family,
99
+ display: $display,
100
+ displayVar: $displayVar,
101
+ formats: $formats,
102
+ subsets: $subsets,
103
+ weights: $weights,
104
+ styles: $styles,
105
+ axes: $axes,
106
+
107
+ variant: $variant,
108
+ subset: $subset,
109
+ unicodeSubset: $unicodeSubset,
110
+ unicodeRange: $unicodeRange,
111
+ weight: $weight,
112
+ axis: $axis,
113
+ style: $style,
114
+
115
+ font-family: string.quote($family),
116
+ font-style: if(
117
+ ($axis == full or $axis == slnt) and map.has-key($metadata, axes, slnt),
118
+ oblique map.get($metadata, axes, slnt, min) + deg map.get($metadata, axes, slnt, max) + deg,
119
+ $style
120
+ ),
121
+ font-display: if($displayVar, var(--fontsource-display, $display), $display),
122
+ font-weight: if(
123
+ ($axis == full or $axis == wght) and map.has-key($metadata, axes, wght),
124
+ map.get($metadata, axes, wght, min) map.get($metadata, axes, wght, max),
125
+ $weight
126
+ ),
127
+ font-stretch: if(
128
+ ($axis == full or $axis == wdth) and map.has-key($metadata, axes, wdth),
129
+ '#{map.get($metadata, axes, wdth, min)}% #{map.get($metadata, axes, wdth, max)}%',
130
+ null
131
+ ),
132
+ src: $src,
133
+ unicode-range: $unicodeRange,
134
+ ));
135
+ }
136
+ }
137
+ }
89
138
  }
90
- src: url("#{$fontDir}/#{$fontId}-#{$subset}-variable-#{$type}-#{$style}.woff2") format("woff2");
91
- unicode-range: $unicodeRangeValues;
92
139
  }
93
140
  }
94
141
  }
95
142
 
96
- @mixin fontFaceVariableCustom(
97
- $fontName: $fontNameVariable,
98
- $fontId: $fontId,
99
- $style: $style,
143
+ @mixin faces(
144
+ $metadata: $metadata,
145
+ $directory: $directory,
146
+ $family: $family,
100
147
  $display: $display,
101
- $weight: $weightVariable,
102
- $type: $type,
103
- $woff2Path: null,
104
- $unicodeRange: $unicodeRange,
105
- $unicodeRangeValues: $unicodeRangeValues
148
+ $displayVar: $displayVar,
149
+ $formats: $formats,
150
+ $subsets: $subsets,
151
+ $weights: $weights,
152
+ $styles: $styles,
153
+ $axes: $axes
106
154
  ) {
107
- @if $woff2Path == null {
108
- $woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-variable-#{$type}-#{$style}.woff2";
109
- }
110
-
111
- @font-face {
112
- font-family: "#{$fontName}";
113
- font-style: $style;
114
- font-display: $display;
115
- font-weight: $weight;
116
- @if $type == "full" {
117
- font-stretch: $stretch;
118
- }
119
- src: url("#{$woff2Path}") format("woff2");
120
- @if $unicodeRange {
121
- unicode-range: $unicodeRangeValues;
155
+ @include generator(
156
+ $metadata: $metadata,
157
+ $directory: $directory,
158
+ $family: $family,
159
+ $display: $display,
160
+ $displayVar: $displayVar,
161
+ $formats: $formats,
162
+ $subsets: $subsets,
163
+ $weights: $weights,
164
+ $styles: $styles,
165
+ $axes: $axes
166
+ )
167
+ using ($props) {
168
+ /* #{map.get($props, variant)} */
169
+ @font-face {
170
+ font-family: map.get($props, font-family);
171
+ font-style: map.get($props, font-style);
172
+ font-display: map.get($props, font-display);
173
+ font-weight: map.get($props, font-weight);
174
+ font-stretch: map.get($props, font-stretch);
175
+ unicode-range: map.get($props, unicode-range);
176
+ src: map.get($props, src);
122
177
  }
123
178
  }
124
179
  }