@@ -6,55 +6,56 @@ CLI for generating or manipulating icon fonts from SVG files.
6
6
7
7
Clean svgs for icon fonts to work
8
8
9
- > You can use ` clean-icons.json ` as a config file.
10
- > By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./clean-icons.json ` .
9
+ > You can use ` clean-icons.json ` as a config file.
10
+ By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./clean-icons.json ` .
11
11
12
12
| long | short | description | required | defaultValue |
13
13
| :------------------ | :---: | :-------------------------------------------------------------------------------------------------- | :------: | :----------- |
14
- | ` --src ` | ` -s ` | Source folder with all svgs | ` ✅ ` | |
15
- | ` --traceResolution ` | ` -r ` | Change the default resolution of the trace | ` ❌ ` | ` "600" ` |
16
- | ` --out ` | ` -o ` | Relative path where the files should be written to. Empty string will overwrite the original files. | ` ❌ ` | |
17
- | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
18
- | ` --ignoreGlobs ` | ` -i ` | Path icon glob to exclude from the fonts | ` ❌ ` | ` [] ` |
19
- | ` --debug ` | | Extra logging | ` ❌ ` | |
20
- | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
14
+ | ` --src ` | ` -s ` | Source folder with all svgs | ` ✅ ` | |
15
+ | ` --traceResolution ` | ` -r ` | Change the default resolution of the trace | ` ❌ ` | ` "600" ` |
16
+ | ` --out ` | ` -o ` | Relative path where the files should be written to. Empty string will overwrite the original files. | ` ❌ ` | |
17
+ | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
18
+ | ` --ignore ` | ` -i ` | Glob or path like to exclude from files | ` ❌ ` | ` [] ` |
19
+ | ` --debug ` | | Extra logging | ` ❌ ` | |
20
+ | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
21
21
22
22
## generate-icon-fonts
23
23
24
24
Generate icon fonts from SVG files
25
25
26
- > You can use ` generate-icon-fonts.json ` as a config file.
27
- > By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./generate-icon-fonts.json ` .
26
+ > You can use ` generate-icon-fonts.json ` as a config file.
27
+ By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./generate-icon-fonts.json ` .
28
28
29
29
| long | short | description | required | defaultValue |
30
30
| :------------------- | :---: | :------------------------------------------------------------------------------------ | :------: | :----------- |
31
- | ` --fontName ` | ` -f ` | The name of your font | ` ✅ ` | |
32
- | ` --src ` | ` -s ` | Source folder with all svgs | ` ✅ ` | |
33
- | ` --variants ` | ` -v ` | Font variants e.g. solid, inverted, etc. We always add a "default" variant for icons. | ` ❌ ` | ` [] ` |
34
- | ` --withSizes ` | ` -w ` | Splits the font into different sizes | ` ❌ ` | |
35
- | ` --prefix ` | ` -p ` | Prefix of icons to delete for icons | ` ❌ ` | |
36
- | ` --overwriteSources ` | ` -o ` | Overwrite all svgs inside src directory | ` ❌ ` | |
37
- | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
38
- | ` --ignoreGlobs ` | ` -i ` | Path icon glob to exclude from the fonts | ` ❌ ` | ` [] ` |
39
- | ` --debug ` | | Extra logging | ` ❌ ` | |
40
- | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
31
+ | ` --fontName ` | ` -f ` | The name of your font | ` ✅ ` | |
32
+ | ` --src ` | ` -s ` | Source folder with all svgs | ` ✅ ` | |
33
+ | ` --variants ` | ` -v ` | Font variants e.g. solid, inverted, etc. We always add a "default" variant for icons. | ` ❌ ` | ` [] ` |
34
+ | ` --withSizes ` | ` -w ` | Splits the font into different sizes | ` ❌ ` | |
35
+ | ` --prefix ` | ` -p ` | Prefix of icons to delete for icons | ` ❌ ` | |
36
+ | ` --overwriteSources ` | ` -o ` | Overwrite all svgs inside src directory | ` ❌ ` | |
37
+ | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
38
+ | ` --ignore ` | ` -i ` | Glob or path like to exclude from files | ` ❌ ` | ` [] ` |
39
+ | ` --debug ` | | Extra logging | ` ❌ ` | |
40
+ | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
41
41
42
42
## icon-subset
43
43
44
- Creates new icon font (woff2) by passing a safelist/blocklist with icon literals. Requires < https://github.com/fonttools/fonttools > to be installed.
45
-
46
- > You can use ` icon-subset.json ` as a config file.
47
- > By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./icon-subset.json ` .
48
-
49
- | long | short | description | required | defaultValue |
50
- | :-------------- | :---: | :----------------------------------------------------------------------------- | :------: | :----------- |
51
- | ` --safeList ` | ` -l ` | Includes only icons from provided list. Priority over 'blockList'. | ` ❌ ` | |
52
- | ` --blockList ` | ` -b ` | Excludes all icons from provided list. Can't be used together with 'safeList'. | ` ❌ ` | |
53
- | ` --overwrite ` | ` -w ` | If the source file should be overwritten. Disables 'out' option. | ` ❌ ` | ` true ` |
54
- | ` --src ` | ` -s ` | Source folder with all woff2 files | ` ❌ ` | |
55
- | ` --filePaths ` | ` -f ` | File paths to woff2 file which should be subsetted. | ` ❌ ` | |
56
- | ` --out ` | ` -o ` | Relative path where the file should be written | ` ❌ ` | ` "." ` |
57
- | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
58
- | ` --debug ` | | Extra logging | ` ❌ ` | |
59
- | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
60
- | ` --ignoreGlobs ` | ` -i ` | Path icon glob to exclude from the fonts | ` ❌ ` | ` [] ` |
44
+ Creates new icon font (woff2) by passing a safelist/blocklist with icon literals. Requires https://github.com/fonttools/fonttools to be installed.
45
+
46
+ > You can use ` icon-subset.json ` as a config file.
47
+ By default it tries to search for the configuration otherwise use a correct path by passing ` --config=./icon-subset.json ` .
48
+
49
+ | long | short | description | required | defaultValue |
50
+ | :------------ | :---: | :----------------------------------------------------------------------------- | :------: | :----------- |
51
+ | ` --safeList ` | ` -l ` | Includes only icons from provided list. Priority over 'blockList'. | ` ❌ ` | |
52
+ | ` --blockList ` | ` -b ` | Excludes all icons from provided list. Can't be used together with 'safeList'. | ` ❌ ` | |
53
+ | ` --overwrite ` | ` -w ` | If the source file should be overwritten. Disables 'out' option. | ` ❌ ` | ` true ` |
54
+ | ` --src ` | ` -s ` | Source folder with all woff2 files | ` ❌ ` | |
55
+ | ` --filePaths ` | ` -f ` | File paths to woff2 file which should be subsetted. | ` ❌ ` | |
56
+ | ` --out ` | ` -o ` | Relative path where the file should be written | ` ❌ ` | ` "." ` |
57
+ | ` --dry ` | ` -d ` | Do a dry run with this command - prints/returns output | ` ❌ ` | |
58
+ | ` --debug ` | | Extra logging | ` ❌ ` | |
59
+ | ` --config ` | ` -c ` | Path to configuration file | ` ❌ ` | |
60
+ | ` --ignore ` | ` -i ` | Glob or path like to exclude from files | ` ❌ ` | ` [] ` |
61
+
0 commit comments