@vuepress-plume/plugin-fonts 1.0.0-rc.201 → 1.0.0-rc.202

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.
@@ -6,7 +6,7 @@
6
6
  font-display: swap;
7
7
  unicode-range:
8
8
  U+0460-052F,
9
- U+1C80-1C88,
9
+ U+1C80-1C8A,
10
10
  U+20B4,
11
11
  U+2DE0-2DFF,
12
12
  U+A640-A69F,
@@ -75,10 +75,15 @@
75
75
  src: url("../fonts/inter-roman-latin-ext.woff2") format("woff2");
76
76
  font-display: swap;
77
77
  unicode-range:
78
- U+0100-02AF,
78
+ U+0100-02BA,
79
+ U+02BD-02C5,
80
+ U+02C7-02CC,
81
+ U+02CE-02D7,
82
+ U+02DD-02FF,
79
83
  U+0304,
80
84
  U+0308,
81
85
  U+0329,
86
+ U+1D00-1DBF,
82
87
  U+1E00-1E9F,
83
88
  U+1EF2-1EFF,
84
89
  U+2020,
@@ -107,7 +112,6 @@
107
112
  U+0308,
108
113
  U+0329,
109
114
  U+2000-206F,
110
- U+2074,
111
115
  U+20AC,
112
116
  U+2122,
113
117
  U+2191,
@@ -126,7 +130,7 @@
126
130
  font-display: swap;
127
131
  unicode-range:
128
132
  U+0460-052F,
129
- U+1C80-1C88,
133
+ U+1C80-1C8A,
130
134
  U+20B4,
131
135
  U+2DE0-2DFF,
132
136
  U+A640-A69F,
@@ -195,10 +199,15 @@
195
199
  src: url("../fonts/inter-italic-latin-ext.woff2") format("woff2");
196
200
  font-display: swap;
197
201
  unicode-range:
198
- U+0100-02AF,
202
+ U+0100-02BA,
203
+ U+02BD-02C5,
204
+ U+02C7-02CC,
205
+ U+02CE-02D7,
206
+ U+02DD-02FF,
199
207
  U+0304,
200
208
  U+0308,
201
209
  U+0329,
210
+ U+1D00-1DBF,
202
211
  U+1E00-1E9F,
203
212
  U+1EF2-1EFF,
204
213
  U+2020,
@@ -227,7 +236,6 @@
227
236
  U+0308,
228
237
  U+0329,
229
238
  U+2000-206F,
230
- U+2074,
231
239
  U+20AC,
232
240
  U+2122,
233
241
  U+2191,
@@ -238,86 +246,248 @@
238
246
  U+FFFD;
239
247
  }
240
248
 
249
+ /*
250
+ Some code points in Inter are not compatible with CJK languages.
251
+
252
+ https://www.unicode.org/L2/L2014/14006-sv-western-vs-cjk.pdf
253
+ https://www.unicode.org/L2/L2018/18013-svs-proposal.pdf
254
+ https://www.unicode.org/L2/L2018/18073-svs-proposal.pdf
255
+ https://www.unicode.org/L2/L2023/23212r-quotes-svs-proposal.pdf
256
+
257
+ https://github.com/w3c/clreq/blob/f837ffe4a5501e72c17bd02961ce1b440916624f/local.css#L4
258
+ & U+2015 (similar to U+2014 in Japanese)
259
+
260
+ All CJK languages: U+00B7, U+2013, U+2014, U+2015, U+2018, U+2019, U+201C, U+201D, U+2026, U+2E3A
261
+ zh's request: U+007E (Both are fine in ja because unused there)
262
+ zh's request but decision postponed: U+002F (Both are fine in ja; include it into Inter for the time being)
263
+ */
264
+
265
+ @font-face {
266
+ font-family: "Inter4CJK";
267
+ font-style: normal;
268
+ font-weight: 100 900;
269
+ src: url("../fonts/inter-roman-cyrillic-ext.woff2") format("woff2");
270
+ font-display: swap;
271
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
272
+ }
273
+
274
+ @font-face {
275
+ font-family: "Inter4CJK";
276
+ font-style: normal;
277
+ font-weight: 100 900;
278
+ src: url("../fonts/inter-roman-cyrillic.woff2") format("woff2");
279
+ font-display: swap;
280
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
281
+ }
282
+
241
283
  @font-face {
242
- font-family: "Punctuation SC";
243
- font-weight: 400;
244
- src:
245
- local("PingFang SC Regular"),
246
- local("Noto Sans CJK SC"),
247
- local("Microsoft YaHei");
284
+ font-family: "Inter4CJK";
285
+ font-style: normal;
286
+ font-weight: 100 900;
287
+ src: url("../fonts/inter-roman-greek-ext.woff2") format("woff2");
288
+ font-display: swap;
289
+ unicode-range: U+1F00-1FFF;
290
+ }
291
+
292
+ @font-face {
293
+ font-family: "Inter4CJK";
294
+ font-style: normal;
295
+ font-weight: 100 900;
296
+ src: url("../fonts/inter-roman-greek.woff2") format("woff2");
297
+ font-display: swap;
298
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
299
+ }
300
+
301
+ @font-face {
302
+ font-family: "Inter4CJK";
303
+ font-style: normal;
304
+ font-weight: 100 900;
305
+ src: url("../fonts/inter-roman-vietnamese.woff2") format("woff2");
306
+ font-display: swap;
248
307
  unicode-range:
249
- U+201C,
250
- U+201D,
251
- U+2018,
252
- U+2019,
253
- U+2E3A,
254
- U+2014,
255
- U+2013,
256
- U+2026,
257
- U+00B7,
258
- U+007E,
259
- U+002F;
308
+ U+0102-0103,
309
+ U+0110-0111,
310
+ U+0128-0129,
311
+ U+0168-0169,
312
+ U+01A0-01A1,
313
+ U+01AF-01B0,
314
+ U+0300-0301,
315
+ U+0303-0304,
316
+ U+0308-0309,
317
+ U+0323,
318
+ U+0329,
319
+ U+1EA0-1EF9,
320
+ U+20AB;
321
+ }
322
+
323
+ @font-face {
324
+ font-family: "Inter4CJK";
325
+ font-style: normal;
326
+ font-weight: 100 900;
327
+ src: url("../fonts/inter-roman-latin-ext.woff2") format("woff2");
328
+ font-display: swap;
329
+ unicode-range:
330
+ U+0100-02AF,
331
+ U+0304,
332
+ U+0308,
333
+ U+0329,
334
+ U+1E00-1E9F,
335
+ U+1EF2-1EFF,
336
+ U+2020,
337
+ U+20A0-20AB,
338
+ U+20AD-20C0,
339
+ U+2113,
340
+ U+2C60-2C7F,
341
+ U+A720-A7FF;
342
+ }
343
+
344
+ /* Exclude some ambiguous CJK characters. */
345
+ @font-face {
346
+ font-family: "Inter4CJK";
347
+ font-style: normal;
348
+ font-weight: 100 900;
349
+ src: url("../fonts/inter-roman-latin.woff2") format("woff2");
350
+ font-display: swap;
351
+ unicode-range:
352
+ U+0000-007D,
353
+ U+007F-00B6,
354
+ U+00B8-00FF,
355
+ U+0131,
356
+ U+0152-0153,
357
+ U+02BB-02BC,
358
+ U+02C6,
359
+ U+02DA,
360
+ U+02DC,
361
+ U+0304,
362
+ U+0308,
363
+ U+0329,
364
+ U+2000-2012,
365
+ U+2016-2017,
366
+ U+201A-201B,
367
+ U+201E-2025,
368
+ U+2027-206F,
369
+ U+2074,
370
+ U+20AC,
371
+ U+2122,
372
+ U+2191,
373
+ U+2193,
374
+ U+2212,
375
+ U+2215,
376
+ U+FEFF,
377
+ U+FFFD;
378
+ }
379
+
380
+ @font-face {
381
+ font-family: "Inter4CJK";
382
+ font-style: italic;
383
+ font-weight: 100 900;
384
+ src: url("../fonts/inter-italic-cyrillic-ext.woff2") format("woff2");
385
+ font-display: swap;
386
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
387
+ }
388
+
389
+ @font-face {
390
+ font-family: "Inter4CJK";
391
+ font-style: italic;
392
+ font-weight: 100 900;
393
+ src: url("../fonts/inter-italic-cyrillic.woff2") format("woff2");
394
+ font-display: swap;
395
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
260
396
  }
261
397
 
262
398
  @font-face {
263
- font-family: "Punctuation SC";
264
- font-weight: 500;
265
- src:
266
- local("PingFang SC Medium"),
267
- local("Noto Sans CJK SC"),
268
- local("Microsoft YaHei");
399
+ font-family: "Inter4CJK";
400
+ font-style: italic;
401
+ font-weight: 100 900;
402
+ src: url("../fonts/inter-italic-greek-ext.woff2") format("woff2");
403
+ font-display: swap;
404
+ unicode-range: U+1F00-1FFF;
405
+ }
406
+
407
+ @font-face {
408
+ font-family: "Inter4CJK";
409
+ font-style: italic;
410
+ font-weight: 100 900;
411
+ src: url("../fonts/inter-italic-greek.woff2") format("woff2");
412
+ font-display: swap;
413
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
414
+ }
415
+
416
+ @font-face {
417
+ font-family: "Inter4CJK";
418
+ font-style: italic;
419
+ font-weight: 100 900;
420
+ src: url("../fonts/inter-italic-vietnamese.woff2") format("woff2");
421
+ font-display: swap;
269
422
  unicode-range:
270
- U+201C,
271
- U+201D,
272
- U+2018,
273
- U+2019,
274
- U+2E3A,
275
- U+2014,
276
- U+2013,
277
- U+2026,
278
- U+00B7,
279
- U+007E,
280
- U+002F;
423
+ U+0102-0103,
424
+ U+0110-0111,
425
+ U+0128-0129,
426
+ U+0168-0169,
427
+ U+01A0-01A1,
428
+ U+01AF-01B0,
429
+ U+0300-0301,
430
+ U+0303-0304,
431
+ U+0308-0309,
432
+ U+0323,
433
+ U+0329,
434
+ U+1EA0-1EF9,
435
+ U+20AB;
281
436
  }
282
437
 
283
438
  @font-face {
284
- font-family: "Punctuation SC";
285
- font-weight: 600;
286
- src:
287
- local("PingFang SC Semibold"),
288
- local("Noto Sans CJK SC Bold"),
289
- local("Microsoft YaHei Bold");
439
+ font-family: "Inter4CJK";
440
+ font-style: italic;
441
+ font-weight: 100 900;
442
+ src: url("../fonts/inter-italic-latin-ext.woff2") format("woff2");
443
+ font-display: swap;
290
444
  unicode-range:
291
- U+201C,
292
- U+201D,
293
- U+2018,
294
- U+2019,
295
- U+2E3A,
296
- U+2014,
297
- U+2013,
298
- U+2026,
299
- U+00B7,
300
- U+007E,
301
- U+002F;
445
+ U+0100-02AF,
446
+ U+0304,
447
+ U+0308,
448
+ U+0329,
449
+ U+1E00-1E9F,
450
+ U+1EF2-1EFF,
451
+ U+2020,
452
+ U+20A0-20AB,
453
+ U+20AD-20C0,
454
+ U+2113,
455
+ U+2C60-2C7F,
456
+ U+A720-A7FF;
302
457
  }
303
458
 
459
+ /* Exclude some ambiguous CJK characters. */
304
460
  @font-face {
305
- font-family: "Punctuation SC";
306
- font-weight: 700;
307
- src:
308
- local("PingFang SC Semibold"),
309
- local("Noto Sans CJK SC Bold"),
310
- local("Microsoft YaHei Bold");
461
+ font-family: "Inter4CJK";
462
+ font-style: italic;
463
+ font-weight: 100 900;
464
+ src: url("../fonts/inter-italic-latin.woff2") format("woff2");
465
+ font-display: swap;
311
466
  unicode-range:
312
- U+201C,
313
- U+201D,
314
- U+2018,
315
- U+2019,
316
- U+2E3A,
317
- U+2014,
318
- U+2013,
319
- U+2026,
320
- U+00B7,
321
- U+007E,
322
- U+002F;
467
+ U+0000-007D,
468
+ U+007F-00B6,
469
+ U+00B8-00FF,
470
+ U+0131,
471
+ U+0152-0153,
472
+ U+02BB-02BC,
473
+ U+02C6,
474
+ U+02DA,
475
+ U+02DC,
476
+ U+0304,
477
+ U+0308,
478
+ U+0329,
479
+ U+2000-2012,
480
+ U+2016-2017,
481
+ U+201A-201B,
482
+ U+201E-2025,
483
+ U+2027-206F,
484
+ U+2074,
485
+ U+20AC,
486
+ U+2122,
487
+ U+2191,
488
+ U+2193,
489
+ U+2212,
490
+ U+2215,
491
+ U+FEFF,
492
+ U+FFFD;
323
493
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuepress-plume/plugin-fonts",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.201",
4
+ "version": "1.0.0-rc.202",
5
5
  "description": "The Plugin for VuePress 2 - fonts",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",