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.
Files changed (80) hide show
  1. package/NOTICE.md +165 -0
  2. package/README.md +302 -34
  3. package/dist/browser.js +4 -0
  4. package/dist/cli.mjs +893 -0
  5. package/dist/index.js +1 -507
  6. package/dist/parseTemplateOption-5T7rSw5J.mjs +20 -0
  7. package/dist/parseTemplateOption-BmH_pcQh.js +1 -0
  8. package/dist/renderTemplates-DvRlS58E.mjs +93 -0
  9. package/dist/renderTemplates-zCYCzeOt.js +1 -0
  10. package/dist/src/browser.d.ts +2 -0
  11. package/dist/src/index.d.ts +4 -2
  12. package/dist/src/lib/applyOptimizeSvgToGlyphs.d.ts +3 -0
  13. package/dist/src/lib/evenoddFillRule.d.ts +2 -0
  14. package/dist/src/lib/execCLI/index.d.ts +3 -4
  15. package/dist/src/lib/inputSource.d.ts +2 -0
  16. package/dist/src/lib/inputSourceUtils.d.ts +4 -0
  17. package/dist/src/lib/largeFontLigatures.d.ts +4 -0
  18. package/dist/src/lib/optimizeSvgGlyphs.d.ts +4 -0
  19. package/dist/src/lib/p-limit/index.d.ts +2 -0
  20. package/dist/src/lib/parseFormats.d.ts +4 -0
  21. package/dist/src/lib/parseTemplateOption.d.ts +2 -0
  22. package/dist/src/lib/runtimeEnvironment.d.ts +4 -0
  23. package/dist/src/lib/sfnt/flavor.d.ts +2 -0
  24. package/dist/src/lib/svgDiagnostics/diagnoseSvgContents.d.ts +12 -0
  25. package/dist/src/lib/svgFontOutput/emptyGlyphPaths.d.ts +3 -0
  26. package/dist/src/lib/svgTools/applySvgDiagnostics.d.ts +13 -0
  27. package/dist/src/lib/svgTools/applySvgTools.d.ts +14 -0
  28. package/dist/src/lib/svgTools/normalizeSvgToolsOptions.d.ts +2 -0
  29. package/dist/src/lib/svgicons2svgfont/index.d.ts +14 -0
  30. package/dist/src/lib/svgicons2svgfont/metadataFromSrcPath.d.ts +11 -0
  31. package/dist/src/lib/templateUnicodeRange.d.ts +4 -0
  32. package/dist/src/lib/ttf2eot/index.d.ts +2 -0
  33. package/dist/src/lib/ttfEncode.d.ts +5 -0
  34. package/dist/src/standalone/convertTtfInput.d.ts +3 -0
  35. package/dist/src/standalone/convertWebfontInput.d.ts +3 -0
  36. package/dist/src/standalone/defaultOptions.d.ts +3 -0
  37. package/dist/src/standalone/fetchWebfontUrl.d.ts +1 -0
  38. package/dist/src/standalone/generateSvgFont.d.ts +2 -0
  39. package/dist/src/standalone/getGlyphsDataFromInputs.d.ts +3 -0
  40. package/dist/src/standalone/glyphsData.d.ts +2 -2
  41. package/dist/src/standalone/index.d.ts +8 -3
  42. package/dist/src/standalone/inputMode.d.ts +9 -0
  43. package/dist/src/standalone/options.d.ts +3 -3
  44. package/dist/src/standalone/optionsFromGlyphs.d.ts +3 -0
  45. package/dist/src/standalone/renderTemplates.d.ts +10 -0
  46. package/dist/src/standalone/runSvgPipeline.d.ts +3 -0
  47. package/dist/src/standalone/templateFonts.d.ts +3 -0
  48. package/dist/src/standalone/toTtf.d.ts +4 -0
  49. package/dist/src/standalone/validateWebfontOptions.d.ts +6 -0
  50. package/dist/src/standalone/webfontFromGlyphs.d.ts +3 -0
  51. package/dist/src/types/DecompressedFont.d.ts +5 -0
  52. package/dist/src/types/Format.d.ts +4 -4
  53. package/dist/src/types/GlyphContentTransformFn.d.ts +2 -0
  54. package/dist/src/types/GlyphData.d.ts +2 -2
  55. package/dist/src/types/GlyphInput.d.ts +6 -0
  56. package/dist/src/types/GlyphMetadata.d.ts +1 -1
  57. package/dist/src/types/GlyphTransformFn.d.ts +2 -2
  58. package/dist/src/types/InitialOptions.d.ts +7 -4
  59. package/dist/src/types/MetadataProvider.d.ts +5 -0
  60. package/dist/src/types/OptionsBase.d.ts +12 -3
  61. package/dist/src/types/RenderedTemplate.d.ts +7 -0
  62. package/dist/src/types/Result.d.ts +16 -5
  63. package/dist/src/types/ResultConfig.d.ts +4 -0
  64. package/dist/src/types/SvgToolsOptions.d.ts +13 -0
  65. package/dist/src/types/TranscodedFont.d.ts +7 -0
  66. package/dist/src/types/WebfontFromGlyphsOptions.d.ts +11 -0
  67. package/dist/src/types/WebfontOptions.d.ts +39 -3
  68. package/dist/src/types/index.d.ts +8 -6
  69. package/package.json +65 -57
  70. package/templates/template.css.njk +6 -3
  71. package/templates/template.html.njk +15 -4
  72. package/templates/template.scss.njk +6 -3
  73. package/templates/template.styl.njk +6 -3
  74. package/dist/cli.js +0 -801
  75. package/dist/jest.config.d.ts +0 -3
  76. package/dist/src/cli/index.d.ts +0 -1
  77. package/dist/src/cli/index.test.d.ts +0 -1
  78. package/dist/src/cli/meow/index.d.ts +0 -104
  79. package/dist/src/index.test.d.ts +0 -1
  80. package/dist/src/standalone/index.test.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- import type { Config } from "@jest/types";
2
- declare const config: Config.InitialOptions;
3
- export default config;
@@ -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;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};