webfont 11.2.26 → 12.1.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.
- package/NOTICE.md +165 -0
- package/README.md +302 -34
- package/dist/browser.js +4 -0
- package/dist/cli.mjs +893 -0
- package/dist/index.js +1 -507
- package/dist/parseTemplateOption-5T7rSw5J.mjs +20 -0
- package/dist/parseTemplateOption-BmH_pcQh.js +1 -0
- package/dist/renderTemplates-DvRlS58E.mjs +93 -0
- package/dist/renderTemplates-zCYCzeOt.js +1 -0
- package/dist/src/browser.d.ts +2 -0
- package/dist/src/index.d.ts +4 -2
- package/dist/src/lib/applyOptimizeSvgToGlyphs.d.ts +3 -0
- package/dist/src/lib/evenoddFillRule.d.ts +2 -0
- package/dist/src/lib/execCLI/index.d.ts +3 -4
- package/dist/src/lib/inputSource.d.ts +2 -0
- package/dist/src/lib/inputSourceUtils.d.ts +4 -0
- package/dist/src/lib/largeFontLigatures.d.ts +4 -0
- package/dist/src/lib/optimizeSvgGlyphs.d.ts +4 -0
- package/dist/src/lib/p-limit/index.d.ts +2 -0
- package/dist/src/lib/parseFormats.d.ts +4 -0
- package/dist/src/lib/parseTemplateOption.d.ts +2 -0
- package/dist/src/lib/runtimeEnvironment.d.ts +4 -0
- package/dist/src/lib/sfnt/flavor.d.ts +2 -0
- package/dist/src/lib/svgDiagnostics/diagnoseSvgContents.d.ts +12 -0
- package/dist/src/lib/svgFontOutput/emptyGlyphPaths.d.ts +3 -0
- package/dist/src/lib/svgTools/applySvgDiagnostics.d.ts +13 -0
- package/dist/src/lib/svgTools/applySvgTools.d.ts +14 -0
- package/dist/src/lib/svgTools/normalizeSvgToolsOptions.d.ts +2 -0
- package/dist/src/lib/svgicons2svgfont/index.d.ts +14 -0
- package/dist/src/lib/svgicons2svgfont/metadataFromSrcPath.d.ts +11 -0
- package/dist/src/lib/templateUnicodeRange.d.ts +4 -0
- package/dist/src/lib/ttf2eot/index.d.ts +2 -0
- package/dist/src/lib/ttfEncode.d.ts +5 -0
- package/dist/src/standalone/convertTtfInput.d.ts +3 -0
- package/dist/src/standalone/convertWebfontInput.d.ts +3 -0
- package/dist/src/standalone/defaultOptions.d.ts +3 -0
- package/dist/src/standalone/fetchWebfontUrl.d.ts +1 -0
- package/dist/src/standalone/generateSvgFont.d.ts +2 -0
- package/dist/src/standalone/getGlyphsDataFromInputs.d.ts +3 -0
- package/dist/src/standalone/glyphsData.d.ts +2 -2
- package/dist/src/standalone/index.d.ts +8 -3
- package/dist/src/standalone/inputMode.d.ts +9 -0
- package/dist/src/standalone/options.d.ts +3 -3
- package/dist/src/standalone/optionsFromGlyphs.d.ts +3 -0
- package/dist/src/standalone/renderTemplates.d.ts +10 -0
- package/dist/src/standalone/runSvgPipeline.d.ts +3 -0
- package/dist/src/standalone/templateFonts.d.ts +3 -0
- package/dist/src/standalone/toTtf.d.ts +4 -0
- package/dist/src/standalone/validateWebfontOptions.d.ts +6 -0
- package/dist/src/standalone/webfontFromGlyphs.d.ts +3 -0
- package/dist/src/types/DecompressedFont.d.ts +5 -0
- package/dist/src/types/Format.d.ts +4 -4
- package/dist/src/types/GlyphContentTransformFn.d.ts +2 -0
- package/dist/src/types/GlyphData.d.ts +2 -2
- package/dist/src/types/GlyphInput.d.ts +6 -0
- package/dist/src/types/GlyphMetadata.d.ts +1 -1
- package/dist/src/types/GlyphTransformFn.d.ts +2 -2
- package/dist/src/types/InitialOptions.d.ts +7 -4
- package/dist/src/types/MetadataProvider.d.ts +5 -0
- package/dist/src/types/OptionsBase.d.ts +12 -3
- package/dist/src/types/RenderedTemplate.d.ts +7 -0
- package/dist/src/types/Result.d.ts +16 -5
- package/dist/src/types/ResultConfig.d.ts +4 -0
- package/dist/src/types/SvgToolsOptions.d.ts +13 -0
- package/dist/src/types/TranscodedFont.d.ts +7 -0
- package/dist/src/types/WebfontFromGlyphsOptions.d.ts +11 -0
- package/dist/src/types/WebfontOptions.d.ts +39 -3
- package/dist/src/types/index.d.ts +8 -6
- package/package.json +65 -57
- package/templates/template.css.njk +6 -3
- package/templates/template.html.njk +15 -4
- package/templates/template.scss.njk +6 -3
- package/templates/template.styl.njk +6 -3
- package/dist/cli.js +0 -801
- package/dist/jest.config.d.ts +0 -3
- package/dist/src/cli/index.d.ts +0 -1
- package/dist/src/cli/index.test.d.ts +0 -1
- package/dist/src/cli/meow/index.d.ts +0 -104
- package/dist/src/index.test.d.ts +0 -1
- package/dist/src/standalone/index.test.d.ts +0 -1
package/dist/jest.config.d.ts
DELETED
package/dist/src/cli/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import meow from "meow";
|
|
2
|
-
declare const meowCLI: meow.Result<{
|
|
3
|
-
ascent: {
|
|
4
|
-
type: "string";
|
|
5
|
-
};
|
|
6
|
-
centerHorizontally: {
|
|
7
|
-
type: "boolean";
|
|
8
|
-
};
|
|
9
|
-
config: {
|
|
10
|
-
default: any;
|
|
11
|
-
};
|
|
12
|
-
descent: {
|
|
13
|
-
type: "string";
|
|
14
|
-
};
|
|
15
|
-
dest: {
|
|
16
|
-
alias: string;
|
|
17
|
-
default: string;
|
|
18
|
-
type: "string";
|
|
19
|
-
};
|
|
20
|
-
destCreate: {
|
|
21
|
-
alias: string;
|
|
22
|
-
default: false;
|
|
23
|
-
type: "boolean";
|
|
24
|
-
};
|
|
25
|
-
destTemplate: {
|
|
26
|
-
alias: string;
|
|
27
|
-
type: "string";
|
|
28
|
-
};
|
|
29
|
-
fixedWidth: {
|
|
30
|
-
type: "boolean";
|
|
31
|
-
};
|
|
32
|
-
fontHeight: {
|
|
33
|
-
type: "string";
|
|
34
|
-
};
|
|
35
|
-
fontId: {
|
|
36
|
-
type: "string";
|
|
37
|
-
};
|
|
38
|
-
fontName: {
|
|
39
|
-
alias: string;
|
|
40
|
-
type: "string";
|
|
41
|
-
};
|
|
42
|
-
fontStyle: {
|
|
43
|
-
type: "string";
|
|
44
|
-
};
|
|
45
|
-
fontWeight: {
|
|
46
|
-
type: "string";
|
|
47
|
-
};
|
|
48
|
-
formats: {
|
|
49
|
-
alias: string;
|
|
50
|
-
};
|
|
51
|
-
help: {
|
|
52
|
-
alias: string;
|
|
53
|
-
type: "boolean";
|
|
54
|
-
};
|
|
55
|
-
normalize: {
|
|
56
|
-
type: "boolean";
|
|
57
|
-
};
|
|
58
|
-
prependUnicode: {
|
|
59
|
-
type: "boolean";
|
|
60
|
-
};
|
|
61
|
-
round: {
|
|
62
|
-
type: "string";
|
|
63
|
-
};
|
|
64
|
-
sort: {
|
|
65
|
-
default: true;
|
|
66
|
-
type: "boolean";
|
|
67
|
-
};
|
|
68
|
-
startUnicode: {
|
|
69
|
-
type: "string";
|
|
70
|
-
};
|
|
71
|
-
template: {
|
|
72
|
-
alias: string;
|
|
73
|
-
type: "string";
|
|
74
|
-
};
|
|
75
|
-
templateClassName: {
|
|
76
|
-
alias: string;
|
|
77
|
-
type: "string";
|
|
78
|
-
};
|
|
79
|
-
templateFontName: {
|
|
80
|
-
alias: string;
|
|
81
|
-
type: "string";
|
|
82
|
-
};
|
|
83
|
-
addHashInFontUrl: {
|
|
84
|
-
default: false;
|
|
85
|
-
type: "boolean";
|
|
86
|
-
};
|
|
87
|
-
templateFontPath: {
|
|
88
|
-
alias: string;
|
|
89
|
-
type: "string";
|
|
90
|
-
};
|
|
91
|
-
templateCacheString: {
|
|
92
|
-
default: string;
|
|
93
|
-
type: "string";
|
|
94
|
-
};
|
|
95
|
-
verbose: {
|
|
96
|
-
default: false;
|
|
97
|
-
type: "boolean";
|
|
98
|
-
};
|
|
99
|
-
version: {
|
|
100
|
-
alias: string;
|
|
101
|
-
type: "boolean";
|
|
102
|
-
};
|
|
103
|
-
}>;
|
|
104
|
-
export default meowCLI;
|
package/dist/src/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|