@remotion/google-fonts 4.0.410 → 4.0.412
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/dist/cjs/NotoNaskhArabic.js +21 -21
- package/dist/cjs/NotoSansBengali.js +28 -28
- package/dist/cjs/SNPro.d.ts +155 -0
- package/dist/cjs/SNPro.js +142 -0
- package/dist/cjs/index.js +5 -0
- package/dist/esm/NotoNaskhArabic.mjs +21 -21
- package/dist/esm/NotoSansBengali.mjs +28 -28
- package/dist/esm/SNPro.mjs +250 -0
- package/dist/esm/index.mjs +5 -0
- package/package.json +5 -2
|
@@ -5,7 +5,7 @@ const base_1 = require("./base");
|
|
|
5
5
|
const getInfo = () => ({
|
|
6
6
|
fontFamily: 'Noto Naskh Arabic',
|
|
7
7
|
importName: 'NotoNaskhArabic',
|
|
8
|
-
version: '
|
|
8
|
+
version: 'v44',
|
|
9
9
|
url: 'https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:ital,wght@0,400;0,500;0,600;0,700',
|
|
10
10
|
unicodeRanges: {
|
|
11
11
|
arabic: 'U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1',
|
|
@@ -17,32 +17,32 @@ const getInfo = () => ({
|
|
|
17
17
|
fonts: {
|
|
18
18
|
normal: {
|
|
19
19
|
'400': {
|
|
20
|
-
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
21
|
-
math: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
22
|
-
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
23
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
24
|
-
latin: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
20
|
+
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2',
|
|
21
|
+
math: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2',
|
|
22
|
+
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2',
|
|
23
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2',
|
|
24
|
+
latin: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2',
|
|
25
25
|
},
|
|
26
26
|
'500': {
|
|
27
|
-
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
28
|
-
math: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
29
|
-
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
30
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
31
|
-
latin: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
27
|
+
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2',
|
|
28
|
+
math: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2',
|
|
29
|
+
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2',
|
|
30
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2',
|
|
31
|
+
latin: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2',
|
|
32
32
|
},
|
|
33
33
|
'600': {
|
|
34
|
-
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
35
|
-
math: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
36
|
-
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
37
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
38
|
-
latin: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
34
|
+
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2',
|
|
35
|
+
math: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2',
|
|
36
|
+
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2',
|
|
37
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2',
|
|
38
|
+
latin: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2',
|
|
39
39
|
},
|
|
40
40
|
'700': {
|
|
41
|
-
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
42
|
-
math: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
43
|
-
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
44
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
45
|
-
latin: 'https://fonts.gstatic.com/s/notonaskharabic/
|
|
41
|
+
arabic: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2',
|
|
42
|
+
math: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2',
|
|
43
|
+
symbols: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2',
|
|
44
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2',
|
|
45
|
+
latin: 'https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2',
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -5,7 +5,7 @@ const base_1 = require("./base");
|
|
|
5
5
|
const getInfo = () => ({
|
|
6
6
|
fontFamily: 'Noto Sans Bengali',
|
|
7
7
|
importName: 'NotoSansBengali',
|
|
8
|
-
version: '
|
|
8
|
+
version: 'v33',
|
|
9
9
|
url: 'https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900',
|
|
10
10
|
unicodeRanges: {
|
|
11
11
|
bengali: 'U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1',
|
|
@@ -15,49 +15,49 @@ const getInfo = () => ({
|
|
|
15
15
|
fonts: {
|
|
16
16
|
normal: {
|
|
17
17
|
'100': {
|
|
18
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
19
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
20
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
18
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
19
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
20
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
21
21
|
},
|
|
22
22
|
'200': {
|
|
23
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
24
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
25
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
23
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
24
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
25
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
26
26
|
},
|
|
27
27
|
'300': {
|
|
28
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
29
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
30
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
28
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
29
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
30
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
31
31
|
},
|
|
32
32
|
'400': {
|
|
33
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
34
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
35
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
33
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
34
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
35
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
36
36
|
},
|
|
37
37
|
'500': {
|
|
38
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
39
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
40
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
38
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
39
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
40
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
41
41
|
},
|
|
42
42
|
'600': {
|
|
43
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
44
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
45
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
43
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
44
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
45
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
46
46
|
},
|
|
47
47
|
'700': {
|
|
48
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
49
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
50
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
48
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
49
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
50
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
51
51
|
},
|
|
52
52
|
'800': {
|
|
53
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
54
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
55
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
53
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
54
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
55
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
56
56
|
},
|
|
57
57
|
'900': {
|
|
58
|
-
bengali: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
59
|
-
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/
|
|
60
|
-
latin: 'https://fonts.gstatic.com/s/notosansbengali/
|
|
58
|
+
bengali: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2',
|
|
59
|
+
'latin-ext': 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2',
|
|
60
|
+
latin: 'https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2',
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
},
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export declare const getInfo: () => {
|
|
2
|
+
fontFamily: string;
|
|
3
|
+
importName: string;
|
|
4
|
+
version: string;
|
|
5
|
+
url: string;
|
|
6
|
+
unicodeRanges: {
|
|
7
|
+
'cyrillic-ext': string;
|
|
8
|
+
cyrillic: string;
|
|
9
|
+
vietnamese: string;
|
|
10
|
+
'latin-ext': string;
|
|
11
|
+
latin: string;
|
|
12
|
+
};
|
|
13
|
+
fonts: {
|
|
14
|
+
italic: {
|
|
15
|
+
'200': {
|
|
16
|
+
'cyrillic-ext': string;
|
|
17
|
+
cyrillic: string;
|
|
18
|
+
vietnamese: string;
|
|
19
|
+
'latin-ext': string;
|
|
20
|
+
latin: string;
|
|
21
|
+
};
|
|
22
|
+
'300': {
|
|
23
|
+
'cyrillic-ext': string;
|
|
24
|
+
cyrillic: string;
|
|
25
|
+
vietnamese: string;
|
|
26
|
+
'latin-ext': string;
|
|
27
|
+
latin: string;
|
|
28
|
+
};
|
|
29
|
+
'400': {
|
|
30
|
+
'cyrillic-ext': string;
|
|
31
|
+
cyrillic: string;
|
|
32
|
+
vietnamese: string;
|
|
33
|
+
'latin-ext': string;
|
|
34
|
+
latin: string;
|
|
35
|
+
};
|
|
36
|
+
'500': {
|
|
37
|
+
'cyrillic-ext': string;
|
|
38
|
+
cyrillic: string;
|
|
39
|
+
vietnamese: string;
|
|
40
|
+
'latin-ext': string;
|
|
41
|
+
latin: string;
|
|
42
|
+
};
|
|
43
|
+
'600': {
|
|
44
|
+
'cyrillic-ext': string;
|
|
45
|
+
cyrillic: string;
|
|
46
|
+
vietnamese: string;
|
|
47
|
+
'latin-ext': string;
|
|
48
|
+
latin: string;
|
|
49
|
+
};
|
|
50
|
+
'700': {
|
|
51
|
+
'cyrillic-ext': string;
|
|
52
|
+
cyrillic: string;
|
|
53
|
+
vietnamese: string;
|
|
54
|
+
'latin-ext': string;
|
|
55
|
+
latin: string;
|
|
56
|
+
};
|
|
57
|
+
'800': {
|
|
58
|
+
'cyrillic-ext': string;
|
|
59
|
+
cyrillic: string;
|
|
60
|
+
vietnamese: string;
|
|
61
|
+
'latin-ext': string;
|
|
62
|
+
latin: string;
|
|
63
|
+
};
|
|
64
|
+
'900': {
|
|
65
|
+
'cyrillic-ext': string;
|
|
66
|
+
cyrillic: string;
|
|
67
|
+
vietnamese: string;
|
|
68
|
+
'latin-ext': string;
|
|
69
|
+
latin: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
normal: {
|
|
73
|
+
'200': {
|
|
74
|
+
'cyrillic-ext': string;
|
|
75
|
+
cyrillic: string;
|
|
76
|
+
vietnamese: string;
|
|
77
|
+
'latin-ext': string;
|
|
78
|
+
latin: string;
|
|
79
|
+
};
|
|
80
|
+
'300': {
|
|
81
|
+
'cyrillic-ext': string;
|
|
82
|
+
cyrillic: string;
|
|
83
|
+
vietnamese: string;
|
|
84
|
+
'latin-ext': string;
|
|
85
|
+
latin: string;
|
|
86
|
+
};
|
|
87
|
+
'400': {
|
|
88
|
+
'cyrillic-ext': string;
|
|
89
|
+
cyrillic: string;
|
|
90
|
+
vietnamese: string;
|
|
91
|
+
'latin-ext': string;
|
|
92
|
+
latin: string;
|
|
93
|
+
};
|
|
94
|
+
'500': {
|
|
95
|
+
'cyrillic-ext': string;
|
|
96
|
+
cyrillic: string;
|
|
97
|
+
vietnamese: string;
|
|
98
|
+
'latin-ext': string;
|
|
99
|
+
latin: string;
|
|
100
|
+
};
|
|
101
|
+
'600': {
|
|
102
|
+
'cyrillic-ext': string;
|
|
103
|
+
cyrillic: string;
|
|
104
|
+
vietnamese: string;
|
|
105
|
+
'latin-ext': string;
|
|
106
|
+
latin: string;
|
|
107
|
+
};
|
|
108
|
+
'700': {
|
|
109
|
+
'cyrillic-ext': string;
|
|
110
|
+
cyrillic: string;
|
|
111
|
+
vietnamese: string;
|
|
112
|
+
'latin-ext': string;
|
|
113
|
+
latin: string;
|
|
114
|
+
};
|
|
115
|
+
'800': {
|
|
116
|
+
'cyrillic-ext': string;
|
|
117
|
+
cyrillic: string;
|
|
118
|
+
vietnamese: string;
|
|
119
|
+
'latin-ext': string;
|
|
120
|
+
latin: string;
|
|
121
|
+
};
|
|
122
|
+
'900': {
|
|
123
|
+
'cyrillic-ext': string;
|
|
124
|
+
cyrillic: string;
|
|
125
|
+
vietnamese: string;
|
|
126
|
+
'latin-ext': string;
|
|
127
|
+
latin: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
subsets: string[];
|
|
132
|
+
};
|
|
133
|
+
export declare const fontFamily: "SN Pro";
|
|
134
|
+
type Variants = {
|
|
135
|
+
italic: {
|
|
136
|
+
weights: '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
137
|
+
subsets: 'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese';
|
|
138
|
+
};
|
|
139
|
+
normal: {
|
|
140
|
+
weights: '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
141
|
+
subsets: 'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese';
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export declare const loadFont: <T extends keyof Variants>(style?: T, options?: {
|
|
145
|
+
weights?: Variants[T]["weights"][];
|
|
146
|
+
subsets?: Variants[T]["subsets"][];
|
|
147
|
+
document?: Document;
|
|
148
|
+
ignoreTooManyRequestsWarning?: boolean;
|
|
149
|
+
}) => {
|
|
150
|
+
fontFamily: import("./base").FontInfo["fontFamily"];
|
|
151
|
+
fonts: import("./base").FontInfo["fonts"];
|
|
152
|
+
unicodeRanges: import("./base").FontInfo["unicodeRanges"];
|
|
153
|
+
waitUntilDone: () => Promise<undefined>;
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFont = exports.fontFamily = exports.getInfo = void 0;
|
|
4
|
+
const base_1 = require("./base");
|
|
5
|
+
const getInfo = () => ({
|
|
6
|
+
fontFamily: 'SN Pro',
|
|
7
|
+
importName: 'SNPro',
|
|
8
|
+
version: 'v1',
|
|
9
|
+
url: 'https://fonts.googleapis.com/css2?family=SN+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900',
|
|
10
|
+
unicodeRanges: {
|
|
11
|
+
'cyrillic-ext': 'U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F',
|
|
12
|
+
cyrillic: 'U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116',
|
|
13
|
+
vietnamese: 'U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB',
|
|
14
|
+
'latin-ext': 'U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF',
|
|
15
|
+
latin: 'U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD',
|
|
16
|
+
},
|
|
17
|
+
fonts: {
|
|
18
|
+
italic: {
|
|
19
|
+
'200': {
|
|
20
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
21
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
22
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
23
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
24
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
25
|
+
},
|
|
26
|
+
'300': {
|
|
27
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
28
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
29
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
30
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
31
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
32
|
+
},
|
|
33
|
+
'400': {
|
|
34
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
35
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
36
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
37
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
38
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
39
|
+
},
|
|
40
|
+
'500': {
|
|
41
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
42
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
43
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
44
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
45
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
46
|
+
},
|
|
47
|
+
'600': {
|
|
48
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
49
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
50
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
51
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
52
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
53
|
+
},
|
|
54
|
+
'700': {
|
|
55
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
56
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
57
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
58
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
59
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
60
|
+
},
|
|
61
|
+
'800': {
|
|
62
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
63
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
64
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
65
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
66
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
67
|
+
},
|
|
68
|
+
'900': {
|
|
69
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2',
|
|
70
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2',
|
|
71
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2',
|
|
72
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2',
|
|
73
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
normal: {
|
|
77
|
+
'200': {
|
|
78
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
79
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
80
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
81
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
82
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
83
|
+
},
|
|
84
|
+
'300': {
|
|
85
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
86
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
87
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
88
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
89
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
90
|
+
},
|
|
91
|
+
'400': {
|
|
92
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
93
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
94
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
95
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
96
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
97
|
+
},
|
|
98
|
+
'500': {
|
|
99
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
100
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
101
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
102
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
103
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
104
|
+
},
|
|
105
|
+
'600': {
|
|
106
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
107
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
108
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
109
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
110
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
111
|
+
},
|
|
112
|
+
'700': {
|
|
113
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
114
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
115
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
116
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
117
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
118
|
+
},
|
|
119
|
+
'800': {
|
|
120
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
121
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
122
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
123
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
124
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
125
|
+
},
|
|
126
|
+
'900': {
|
|
127
|
+
'cyrillic-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2',
|
|
128
|
+
cyrillic: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2',
|
|
129
|
+
vietnamese: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2',
|
|
130
|
+
'latin-ext': 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2',
|
|
131
|
+
latin: 'https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
subsets: ['cyrillic', 'cyrillic-ext', 'latin', 'latin-ext', 'vietnamese'],
|
|
136
|
+
});
|
|
137
|
+
exports.getInfo = getInfo;
|
|
138
|
+
exports.fontFamily = 'SN Pro';
|
|
139
|
+
const loadFont = (style, options) => {
|
|
140
|
+
return (0, base_1.loadFonts)((0, exports.getInfo)(), style, options);
|
|
141
|
+
};
|
|
142
|
+
exports.loadFont = loadFont;
|
package/dist/cjs/index.js
CHANGED
|
@@ -7427,6 +7427,11 @@ const getAvailableFonts = () => [
|
|
|
7427
7427
|
importName: 'Rye',
|
|
7428
7428
|
load: () => Promise.resolve().then(() => __importStar(require('./Rye'))),
|
|
7429
7429
|
},
|
|
7430
|
+
{
|
|
7431
|
+
fontFamily: 'SN Pro',
|
|
7432
|
+
importName: 'SNPro',
|
|
7433
|
+
load: () => Promise.resolve().then(() => __importStar(require('./SNPro'))),
|
|
7434
|
+
},
|
|
7430
7435
|
{
|
|
7431
7436
|
fontFamily: 'STIX Two Text',
|
|
7432
7437
|
importName: 'STIXTwoText',
|
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Noto Naskh Arabic",
|
|
112
112
|
importName: "NotoNaskhArabic",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v44",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:ital,wght@0,400;0,500;0,600;0,700",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
arabic: "U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1",
|
|
@@ -122,32 +122,32 @@ var getInfo = () => ({
|
|
|
122
122
|
fonts: {
|
|
123
123
|
normal: {
|
|
124
124
|
"400": {
|
|
125
|
-
arabic: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
126
|
-
math: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
127
|
-
symbols: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
128
|
-
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/
|
|
129
|
-
latin: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
125
|
+
arabic: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2",
|
|
126
|
+
math: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2",
|
|
127
|
+
symbols: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2",
|
|
128
|
+
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2",
|
|
129
|
+
latin: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2"
|
|
130
130
|
},
|
|
131
131
|
"500": {
|
|
132
|
-
arabic: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
133
|
-
math: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
134
|
-
symbols: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
135
|
-
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/
|
|
136
|
-
latin: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
132
|
+
arabic: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2",
|
|
133
|
+
math: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2",
|
|
134
|
+
symbols: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2",
|
|
135
|
+
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2",
|
|
136
|
+
latin: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2"
|
|
137
137
|
},
|
|
138
138
|
"600": {
|
|
139
|
-
arabic: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
140
|
-
math: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
141
|
-
symbols: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
142
|
-
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/
|
|
143
|
-
latin: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
139
|
+
arabic: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2",
|
|
140
|
+
math: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2",
|
|
141
|
+
symbols: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2",
|
|
142
|
+
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2",
|
|
143
|
+
latin: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2"
|
|
144
144
|
},
|
|
145
145
|
"700": {
|
|
146
|
-
arabic: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
147
|
-
math: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
148
|
-
symbols: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
149
|
-
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/
|
|
150
|
-
latin: "https://fonts.gstatic.com/s/notonaskharabic/
|
|
146
|
+
arabic: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2DHV20Lg.woff2",
|
|
147
|
+
math: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN36HV20Lg.woff2",
|
|
148
|
+
symbols: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN3oHV20Lg.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2IHV20Lg.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/notonaskharabic/v44/RrQKbpV-9Dd1b1OAGA6M9PkyDuVBeN2GHV0.woff2"
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -110,7 +110,7 @@ var loadFonts = (meta, style, options) => {
|
|
|
110
110
|
var getInfo = () => ({
|
|
111
111
|
fontFamily: "Noto Sans Bengali",
|
|
112
112
|
importName: "NotoSansBengali",
|
|
113
|
-
version: "
|
|
113
|
+
version: "v33",
|
|
114
114
|
url: "https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900",
|
|
115
115
|
unicodeRanges: {
|
|
116
116
|
bengali: "U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1",
|
|
@@ -120,49 +120,49 @@ var getInfo = () => ({
|
|
|
120
120
|
fonts: {
|
|
121
121
|
normal: {
|
|
122
122
|
"100": {
|
|
123
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
124
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
125
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
123
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
124
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
125
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
126
126
|
},
|
|
127
127
|
"200": {
|
|
128
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
129
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
130
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
128
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
129
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
130
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
131
131
|
},
|
|
132
132
|
"300": {
|
|
133
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
134
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
135
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
133
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
134
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
135
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
136
136
|
},
|
|
137
137
|
"400": {
|
|
138
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
139
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
140
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
138
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
139
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
140
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
141
141
|
},
|
|
142
142
|
"500": {
|
|
143
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
144
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
145
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
143
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
144
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
145
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
146
146
|
},
|
|
147
147
|
"600": {
|
|
148
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
149
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
150
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
148
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
151
151
|
},
|
|
152
152
|
"700": {
|
|
153
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
154
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
155
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
153
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
154
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
155
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
156
156
|
},
|
|
157
157
|
"800": {
|
|
158
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
159
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
160
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
158
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
159
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
160
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
161
161
|
},
|
|
162
162
|
"900": {
|
|
163
|
-
bengali: "https://fonts.gstatic.com/s/notosansbengali/
|
|
164
|
-
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/
|
|
165
|
-
latin: "https://fonts.gstatic.com/s/notosansbengali/
|
|
163
|
+
bengali: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2",
|
|
164
|
+
"latin-ext": "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4P3mYvNY.woff2",
|
|
165
|
+
latin: "https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4MXmY.woff2"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
},
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// src/base.ts
|
|
2
|
+
import { continueRender, delayRender } from "remotion";
|
|
3
|
+
import { NoReactInternals } from "remotion/no-react";
|
|
4
|
+
var loadedFonts = {};
|
|
5
|
+
var withResolvers = function() {
|
|
6
|
+
let resolve;
|
|
7
|
+
let reject;
|
|
8
|
+
const promise = new Promise((res, rej) => {
|
|
9
|
+
resolve = res;
|
|
10
|
+
reject = rej;
|
|
11
|
+
});
|
|
12
|
+
return { promise, resolve, reject };
|
|
13
|
+
};
|
|
14
|
+
var loadFontFaceOrTimeoutAfter20Seconds = (fontFace) => {
|
|
15
|
+
const timeout = withResolvers();
|
|
16
|
+
const int = setTimeout(() => {
|
|
17
|
+
timeout.reject(new Error("Timed out loading Google Font"));
|
|
18
|
+
}, 18000);
|
|
19
|
+
return Promise.race([
|
|
20
|
+
fontFace.load().then(() => {
|
|
21
|
+
clearTimeout(int);
|
|
22
|
+
}),
|
|
23
|
+
timeout.promise
|
|
24
|
+
]);
|
|
25
|
+
};
|
|
26
|
+
var loadFonts = (meta, style, options) => {
|
|
27
|
+
const weightsAndSubsetsAreSpecified = Array.isArray(options?.weights) && Array.isArray(options?.subsets) && options.weights.length > 0 && options.subsets.length > 0;
|
|
28
|
+
if (NoReactInternals.ENABLE_V5_BREAKING_CHANGES && !weightsAndSubsetsAreSpecified) {
|
|
29
|
+
throw new Error("Loading Google Fonts without specifying weights and subsets is not supported in Remotion v5. Please specify the weights and subsets you need.");
|
|
30
|
+
}
|
|
31
|
+
const promises = [];
|
|
32
|
+
const styles = style ? [style] : Object.keys(meta.fonts);
|
|
33
|
+
let fontsLoaded = 0;
|
|
34
|
+
for (const style2 of styles) {
|
|
35
|
+
if (typeof FontFace === "undefined") {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (!meta.fonts[style2]) {
|
|
39
|
+
throw new Error(`The font ${meta.fontFamily} does not have a style ${style2}`);
|
|
40
|
+
}
|
|
41
|
+
const weights = options?.weights ?? Object.keys(meta.fonts[style2]);
|
|
42
|
+
for (const weight of weights) {
|
|
43
|
+
if (!meta.fonts[style2][weight]) {
|
|
44
|
+
throw new Error(`The font ${meta.fontFamily} does not have a weight ${weight} in style ${style2}`);
|
|
45
|
+
}
|
|
46
|
+
const subsets = options?.subsets ?? Object.keys(meta.fonts[style2][weight]);
|
|
47
|
+
for (const subset of subsets) {
|
|
48
|
+
let font = meta.fonts[style2]?.[weight]?.[subset];
|
|
49
|
+
if (!font) {
|
|
50
|
+
throw new Error(`weight: ${weight} subset: ${subset} is not available for '${meta.fontFamily}'`);
|
|
51
|
+
}
|
|
52
|
+
let fontKey = `${meta.fontFamily}-${style2}-${weight}-${subset}`;
|
|
53
|
+
const previousPromise = loadedFonts[fontKey];
|
|
54
|
+
if (previousPromise) {
|
|
55
|
+
promises.push(previousPromise);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const baseLabel = `Fetching ${meta.fontFamily} font ${JSON.stringify({
|
|
59
|
+
style: style2,
|
|
60
|
+
weight,
|
|
61
|
+
subset
|
|
62
|
+
})}`;
|
|
63
|
+
const label = weightsAndSubsetsAreSpecified ? baseLabel : `${baseLabel}. This might be caused by loading too many font variations. Read more: https://www.remotion.dev/docs/troubleshooting/font-loading-errors#render-timeout-when-loading-google-fonts`;
|
|
64
|
+
const handle = delayRender(label, { timeoutInMilliseconds: 60000 });
|
|
65
|
+
fontsLoaded++;
|
|
66
|
+
const fontFace = new FontFace(meta.fontFamily, `url(${font}) format('woff2')`, {
|
|
67
|
+
weight,
|
|
68
|
+
style: style2,
|
|
69
|
+
unicodeRange: meta.unicodeRanges[subset]
|
|
70
|
+
});
|
|
71
|
+
let attempts = 2;
|
|
72
|
+
const tryToLoad = () => {
|
|
73
|
+
if (fontFace.status === "loaded") {
|
|
74
|
+
continueRender(handle);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const promise = loadFontFaceOrTimeoutAfter20Seconds(fontFace).then(() => {
|
|
78
|
+
(options?.document ?? document).fonts.add(fontFace);
|
|
79
|
+
continueRender(handle);
|
|
80
|
+
}).catch((err) => {
|
|
81
|
+
loadedFonts[fontKey] = undefined;
|
|
82
|
+
if (attempts === 0) {
|
|
83
|
+
throw err;
|
|
84
|
+
} else {
|
|
85
|
+
attempts--;
|
|
86
|
+
tryToLoad();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
loadedFonts[fontKey] = promise;
|
|
90
|
+
promises.push(promise);
|
|
91
|
+
};
|
|
92
|
+
tryToLoad();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (fontsLoaded > 20) {
|
|
96
|
+
console.warn(`Made ${fontsLoaded} network requests to load fonts for ${meta.fontFamily}. Consider loading fewer weights and subsets by passing options to loadFont(). Disable this warning by passing "ignoreTooManyRequestsWarning: true" to "options".`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
fontFamily: meta.fontFamily,
|
|
101
|
+
fonts: meta.fonts,
|
|
102
|
+
unicodeRanges: meta.unicodeRanges,
|
|
103
|
+
waitUntilDone: () => Promise.all(promises).then(() => {
|
|
104
|
+
return;
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/SNPro.ts
|
|
110
|
+
var getInfo = () => ({
|
|
111
|
+
fontFamily: "SN Pro",
|
|
112
|
+
importName: "SNPro",
|
|
113
|
+
version: "v1",
|
|
114
|
+
url: "https://fonts.googleapis.com/css2?family=SN+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900",
|
|
115
|
+
unicodeRanges: {
|
|
116
|
+
"cyrillic-ext": "U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",
|
|
117
|
+
cyrillic: "U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",
|
|
118
|
+
vietnamese: "U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB",
|
|
119
|
+
"latin-ext": "U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",
|
|
120
|
+
latin: "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"
|
|
121
|
+
},
|
|
122
|
+
fonts: {
|
|
123
|
+
italic: {
|
|
124
|
+
"200": {
|
|
125
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
126
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
127
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
128
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
129
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
130
|
+
},
|
|
131
|
+
"300": {
|
|
132
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
133
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
134
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
135
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
136
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
137
|
+
},
|
|
138
|
+
"400": {
|
|
139
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
140
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
141
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
142
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
143
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
144
|
+
},
|
|
145
|
+
"500": {
|
|
146
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
147
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
148
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
149
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
150
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
151
|
+
},
|
|
152
|
+
"600": {
|
|
153
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
154
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
155
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
156
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
157
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
158
|
+
},
|
|
159
|
+
"700": {
|
|
160
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
161
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
162
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
163
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
164
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
165
|
+
},
|
|
166
|
+
"800": {
|
|
167
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
168
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
169
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
170
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
171
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
172
|
+
},
|
|
173
|
+
"900": {
|
|
174
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RBkK440A.woff2",
|
|
175
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RIkK440A.woff2",
|
|
176
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RDkK440A.woff2",
|
|
177
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RCkK440A.woff2",
|
|
178
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS3v5zWIAwPIq7hb6RMkK4.woff2"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
normal: {
|
|
182
|
+
"200": {
|
|
183
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
184
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
185
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
186
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
187
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
188
|
+
},
|
|
189
|
+
"300": {
|
|
190
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
191
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
192
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
193
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
194
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
195
|
+
},
|
|
196
|
+
"400": {
|
|
197
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
198
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
199
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
200
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
201
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
202
|
+
},
|
|
203
|
+
"500": {
|
|
204
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
205
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
206
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
207
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
208
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
209
|
+
},
|
|
210
|
+
"600": {
|
|
211
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
212
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
213
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
214
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
215
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
216
|
+
},
|
|
217
|
+
"700": {
|
|
218
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
219
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
220
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
221
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
222
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
223
|
+
},
|
|
224
|
+
"800": {
|
|
225
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
226
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
227
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
228
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
229
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
230
|
+
},
|
|
231
|
+
"900": {
|
|
232
|
+
"cyrillic-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZ5ROiKo.woff2",
|
|
233
|
+
cyrillic: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hbpROiKo.woff2",
|
|
234
|
+
vietnamese: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZZROiKo.woff2",
|
|
235
|
+
"latin-ext": "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hZJROiKo.woff2",
|
|
236
|
+
latin: "https://fonts.gstatic.com/s/snpro/v1/NGS1v5zWIAwPIq7hapRO.woff2"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
subsets: ["cyrillic", "cyrillic-ext", "latin", "latin-ext", "vietnamese"]
|
|
241
|
+
});
|
|
242
|
+
var fontFamily = "SN Pro";
|
|
243
|
+
var loadFont = (style, options) => {
|
|
244
|
+
return loadFonts(getInfo(), style, options);
|
|
245
|
+
};
|
|
246
|
+
export {
|
|
247
|
+
loadFont,
|
|
248
|
+
getInfo,
|
|
249
|
+
fontFamily
|
|
250
|
+
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -7390,6 +7390,11 @@ export const getAvailableFonts = () => [
|
|
|
7390
7390
|
importName: 'Rye',
|
|
7391
7391
|
load: () => import('./Rye.mjs'),
|
|
7392
7392
|
},
|
|
7393
|
+
{
|
|
7394
|
+
fontFamily: 'SN Pro',
|
|
7395
|
+
importName: 'SNPro',
|
|
7396
|
+
load: () => import('./SNPro.mjs'),
|
|
7397
|
+
},
|
|
7393
7398
|
{
|
|
7394
7399
|
fontFamily: 'STIX Two Text',
|
|
7395
7400
|
importName: 'STIXTwoText',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/google-fonts"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/google-fonts",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.412",
|
|
7
7
|
"description": "Use Google Fonts in Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"module": "dist/esm/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"remotion": "4.0.
|
|
17
|
+
"remotion": "4.0.411"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/css-font-loading-module": "0.0.14",
|
|
@@ -4459,6 +4459,9 @@
|
|
|
4459
4459
|
"Rye": [
|
|
4460
4460
|
"dist/cjs/Rye.d.ts"
|
|
4461
4461
|
],
|
|
4462
|
+
"SNPro": [
|
|
4463
|
+
"dist/cjs/SNPro.d.ts"
|
|
4464
|
+
],
|
|
4462
4465
|
"STIXTwoText": [
|
|
4463
4466
|
"dist/cjs/STIXTwoText.d.ts"
|
|
4464
4467
|
],
|