@@ -24,16 +24,16 @@ ttx <params>
24
24
Also you can use this tool via [ npx] ( https://docs.npmjs.com/cli/commands/npx ) :
25
25
26
26
``` shell
27
- npx -p @web-alchemy/fonttools < params>
28
- npx -p @web-alchemy/fonttools pyftsubset < params>
29
- npx -p @web-alchemy/fonttools pyftmerge < params>
30
- npx -p @web-alchemy/fonttools ttx < params>
27
+ npx --package= @web-alchemy/fonttools -- fonttools < params>
28
+ npx --package= @web-alchemy/fonttools -- pyftsubset < params>
29
+ npx --package= @web-alchemy/fonttools -- pyftmerge < params>
30
+ npx --package= @web-alchemy/fonttools -- ttx < params>
31
31
```
32
32
33
33
Example of converting ` ttf ` to ` woff2 ` :
34
34
35
35
``` shell
36
- npx -p @web-alchemy/fonttools pyftsubset \
36
+ npx --package= @web-alchemy/fonttools -- pyftsubset \
37
37
" ./some/path/to/font.ttf" \
38
38
" *" \ # keep all glyphs and just convert format
39
39
--output-file=" ./some/path/to/font.woff2" \
@@ -43,7 +43,7 @@ npx -p @web-alchemy/fonttools pyftsubset \
43
43
Example of converting ` ttf ` to ` woff2 ` and subseting with text and unicodes options:
44
44
45
45
``` shell
46
- npx -p @web-alchemy/fonttools pyftsubset \
46
+ npx --package= @web-alchemy/fonttools -- pyftsubset \
47
47
" ./some/path/to/font.ttf" \
48
48
--output-file=" ./some/path/to/font.woff2" \
49
49
--flavor=" woff2" \
@@ -57,7 +57,7 @@ npx -p @web-alchemy/fonttools pyftsubset \
57
57
Example of [ customizing variable font's axes] ( https://fonttools.readthedocs.io/en/latest/varLib/instancer.html ) :
58
58
59
59
``` shell
60
- npx @web-alchemy/fonttools varLib.instancer \
60
+ npx --package= @web-alchemy/fonttools -- fonttools varLib.instancer \
61
61
" ./src/font.woff2" \
62
62
# decrease `wght` axis range
63
63
wght=400:600 \
0 commit comments