@michelabboud/visual-forge-fonts-standard 1.0.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 (100) hide show
  1. package/fonts/FiraCode-Bold.ttf +0 -0
  2. package/fonts/FiraCode-Light.ttf +0 -0
  3. package/fonts/FiraCode-Medium.ttf +0 -0
  4. package/fonts/FiraCode-Regular.ttf +0 -0
  5. package/fonts/FiraCode-Retina.ttf +0 -0
  6. package/fonts/FiraCode-SemiBold.ttf +0 -0
  7. package/fonts/FiraCode-VF.ttf +0 -0
  8. package/fonts/Merriweather-Black.ttf +0 -0
  9. package/fonts/Merriweather-BlackItalic.ttf +0 -0
  10. package/fonts/Merriweather-Bold.ttf +0 -0
  11. package/fonts/Merriweather-BoldItalic.ttf +0 -0
  12. package/fonts/Merriweather-Italic.ttf +0 -0
  13. package/fonts/Merriweather-Light.ttf +0 -0
  14. package/fonts/Merriweather-LightItalic.ttf +0 -0
  15. package/fonts/Merriweather-Regular.ttf +0 -0
  16. package/fonts/Oswald-Bold-unhinted.ttf +0 -0
  17. package/fonts/Oswald-Bold.ttf +0 -0
  18. package/fonts/Oswald-BoldItalic-unhinted.ttf +0 -0
  19. package/fonts/Oswald-BoldItalic.ttf +0 -0
  20. package/fonts/Oswald-Demi-BoldItalic-unhinted.ttf +0 -0
  21. package/fonts/Oswald-Demi-BoldItalic.ttf +0 -0
  22. package/fonts/Oswald-DemiBold-unhinted.ttf +0 -0
  23. package/fonts/Oswald-DemiBold.ttf +0 -0
  24. package/fonts/Oswald-Extra-LightItalic-unhinted.ttf +0 -0
  25. package/fonts/Oswald-Extra-LightItalic.ttf +0 -0
  26. package/fonts/Oswald-ExtraLight-unhinted.ttf +0 -0
  27. package/fonts/Oswald-ExtraLight.ttf +0 -0
  28. package/fonts/Oswald-Heavy-unhinted.ttf +0 -0
  29. package/fonts/Oswald-Heavy.ttf +0 -0
  30. package/fonts/Oswald-HeavyItalic-unhinted.ttf +0 -0
  31. package/fonts/Oswald-HeavyItalic.ttf +0 -0
  32. package/fonts/Oswald-Light-unhinted.ttf +0 -0
  33. package/fonts/Oswald-Light.ttf +0 -0
  34. package/fonts/Oswald-LightItalic-unhinted.ttf +0 -0
  35. package/fonts/Oswald-LightItalic.ttf +0 -0
  36. package/fonts/Oswald-Medium-unhinted.ttf +0 -0
  37. package/fonts/Oswald-Medium.ttf +0 -0
  38. package/fonts/Oswald-MediumItalic-unhinted.ttf +0 -0
  39. package/fonts/Oswald-MediumItalic.ttf +0 -0
  40. package/fonts/Oswald-Regular-unhinted.ttf +0 -0
  41. package/fonts/Oswald-Regular.ttf +0 -0
  42. package/fonts/Oswald-RegularItalic-unhinted.ttf +0 -0
  43. package/fonts/Oswald-RegularItalic.ttf +0 -0
  44. package/fonts/Oswald-SemiBold.ttf +0 -0
  45. package/fonts/Oswald-Stencil.ttf +0 -0
  46. package/fonts/Oswald-unhinted.ttf +0 -0
  47. package/fonts/Oswald[wght].ttf +0 -0
  48. package/fonts/Roboto-Black.ttf +0 -0
  49. package/fonts/Roboto-BlackItalic.ttf +0 -0
  50. package/fonts/Roboto-Bold.ttf +0 -0
  51. package/fonts/Roboto-BoldItalic.ttf +0 -0
  52. package/fonts/Roboto-Italic.ttf +0 -0
  53. package/fonts/Roboto-Light.ttf +0 -0
  54. package/fonts/Roboto-LightItalic.ttf +0 -0
  55. package/fonts/Roboto-Medium.ttf +0 -0
  56. package/fonts/Roboto-MediumItalic.ttf +0 -0
  57. package/fonts/Roboto-Regular.ttf +0 -0
  58. package/fonts/Roboto-Thin.ttf +0 -0
  59. package/fonts/Roboto-ThinItalic.ttf +0 -0
  60. package/fonts/RobotoCondensed-Bold.ttf +0 -0
  61. package/fonts/RobotoCondensed-BoldItalic.ttf +0 -0
  62. package/fonts/RobotoCondensed-Italic.ttf +0 -0
  63. package/fonts/RobotoCondensed-Light.ttf +0 -0
  64. package/fonts/RobotoCondensed-LightItalic.ttf +0 -0
  65. package/fonts/RobotoCondensed-Medium.ttf +0 -0
  66. package/fonts/RobotoCondensed-MediumItalic.ttf +0 -0
  67. package/fonts/RobotoCondensed-Regular.ttf +0 -0
  68. package/fonts/SourceCodePro-Black.ttf +0 -0
  69. package/fonts/SourceCodePro-BlackIt.ttf +0 -0
  70. package/fonts/SourceCodePro-Bold.ttf +0 -0
  71. package/fonts/SourceCodePro-BoldIt.ttf +0 -0
  72. package/fonts/SourceCodePro-ExtraLight.ttf +0 -0
  73. package/fonts/SourceCodePro-ExtraLightIt.ttf +0 -0
  74. package/fonts/SourceCodePro-It.ttf +0 -0
  75. package/fonts/SourceCodePro-Light.ttf +0 -0
  76. package/fonts/SourceCodePro-LightIt.ttf +0 -0
  77. package/fonts/SourceCodePro-Medium.ttf +0 -0
  78. package/fonts/SourceCodePro-MediumIt.ttf +0 -0
  79. package/fonts/SourceCodePro-Regular.ttf +0 -0
  80. package/fonts/SourceCodePro-Semibold.ttf +0 -0
  81. package/fonts/SourceCodePro-SemiboldIt.ttf +0 -0
  82. package/fonts/SourceSans3-Black.ttf +0 -0
  83. package/fonts/SourceSans3-BlackIt.ttf +0 -0
  84. package/fonts/SourceSans3-Bold.ttf +0 -0
  85. package/fonts/SourceSans3-BoldIt.ttf +0 -0
  86. package/fonts/SourceSans3-ExtraLight.ttf +0 -0
  87. package/fonts/SourceSans3-ExtraLightIt.ttf +0 -0
  88. package/fonts/SourceSans3-It.ttf +0 -0
  89. package/fonts/SourceSans3-Light.ttf +0 -0
  90. package/fonts/SourceSans3-LightIt.ttf +0 -0
  91. package/fonts/SourceSans3-Medium.ttf +0 -0
  92. package/fonts/SourceSans3-MediumIt.ttf +0 -0
  93. package/fonts/SourceSans3-Regular.ttf +0 -0
  94. package/fonts/SourceSans3-Semibold.ttf +0 -0
  95. package/fonts/SourceSans3-SemiboldIt.ttf +0 -0
  96. package/index.js +128 -0
  97. package/licenses/Merriweather/OFL.txt +93 -0
  98. package/licenses/Oswald/OFL.txt +94 -0
  99. package/licenses/Roboto/LICENSE +1 -0
  100. package/package.json +21 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/index.js ADDED
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Visual Forge Fonts - Standard Bundle
3
+ *
4
+ * DISCLAIMER: We do not own these fonts. This package is a convenience
5
+ * wrapper for freely-licensed fonts. All credit goes to the original creators.
6
+ *
7
+ * This package depends on @michelabboud/visual-forge-fonts-minimal
8
+ * and adds additional fonts. No fonts are duplicated.
9
+ */
10
+
11
+ const path = require('path');
12
+ const fs = require('fs');
13
+
14
+ // Import minimal bundle
15
+ let minimalFonts;
16
+ try {
17
+ minimalFonts = require('@michelabboud/visual-forge-fonts-minimal');
18
+ } catch (e) {
19
+ minimalFonts = null;
20
+ }
21
+
22
+ /**
23
+ * Get the absolute path to this package's fonts directory
24
+ * @returns {string} Absolute path to fonts
25
+ */
26
+ function getOwnFontsPath() {
27
+ return path.join(__dirname, 'fonts');
28
+ }
29
+
30
+ /**
31
+ * Get all font paths (this package + dependencies)
32
+ * @returns {string[]} Array of font directory paths
33
+ */
34
+ function getAllFontPaths() {
35
+ const paths = [getOwnFontsPath()];
36
+ if (minimalFonts) {
37
+ paths.push(minimalFonts.getFontsPath());
38
+ }
39
+ return paths;
40
+ }
41
+
42
+ /**
43
+ * Get list of font families in THIS package only (not dependencies)
44
+ * @returns {string[]} Array of font family names
45
+ */
46
+ function getOwnFontFamilies() {
47
+ return [
48
+ 'EB Garamond',
49
+ 'Merriweather',
50
+ 'Source Sans Pro',
51
+ 'Source Serif Pro',
52
+ 'Source Code Pro',
53
+ 'Roboto',
54
+ 'Open Sans',
55
+ 'Lato',
56
+ 'Fira Code',
57
+ 'Oswald',
58
+ 'Montserrat'
59
+ ];
60
+ }
61
+
62
+ /**
63
+ * Get ALL font families (this package + dependencies)
64
+ * @returns {string[]} Array of all font family names
65
+ */
66
+ function getAllFontFamilies() {
67
+ const families = [...getOwnFontFamilies()];
68
+ if (minimalFonts) {
69
+ families.push(...minimalFonts.getFontFamilies());
70
+ }
71
+ return families;
72
+ }
73
+
74
+ /**
75
+ * Get font metadata
76
+ * @returns {object} Font information
77
+ */
78
+ function getFontInfo() {
79
+ return {
80
+ bundle: 'standard',
81
+ version: '1.0.0',
82
+ ownPath: getOwnFontsPath(),
83
+ allPaths: getAllFontPaths(),
84
+ ownFamilies: getOwnFontFamilies(),
85
+ allFamilies: getAllFontFamilies(),
86
+ dependsOn: ['@michelabboud/visual-forge-fonts-minimal'],
87
+ fonts: [
88
+ { name: 'EB Garamond', type: 'serif', license: 'OFL', creator: 'Georg Duffner' },
89
+ { name: 'Merriweather', type: 'serif', license: 'OFL', creator: 'Sorkin Type Co.' },
90
+ { name: 'Source Sans Pro', type: 'sans-serif', license: 'OFL', creator: 'Adobe Inc.' },
91
+ { name: 'Source Serif Pro', type: 'serif', license: 'OFL', creator: 'Adobe Inc.' },
92
+ { name: 'Source Code Pro', type: 'monospace', license: 'OFL', creator: 'Adobe Inc.' },
93
+ { name: 'Roboto', type: 'sans-serif', license: 'Apache 2.0', creator: 'Google' },
94
+ { name: 'Open Sans', type: 'sans-serif', license: 'OFL', creator: 'Steve Matteson' },
95
+ { name: 'Lato', type: 'sans-serif', license: 'OFL', creator: 'Łukasz Dziedzic' },
96
+ { name: 'Fira Code', type: 'monospace', license: 'OFL', creator: 'Nikita Prokopov' },
97
+ { name: 'Oswald', type: 'display', license: 'OFL', creator: 'Vernon Adams' },
98
+ { name: 'Montserrat', type: 'sans-serif', license: 'OFL', creator: 'Julieta Ulanovsky' }
99
+ ]
100
+ };
101
+ }
102
+
103
+ /**
104
+ * Check if fonts are properly installed
105
+ * @returns {boolean} True if fonts directory exists and has files
106
+ */
107
+ function isInstalled() {
108
+ const fontsPath = getOwnFontsPath();
109
+ try {
110
+ const files = fs.readdirSync(fontsPath);
111
+ return files.some(f => f.endsWith('.ttf') || f.endsWith('.otf'));
112
+ } catch {
113
+ return false;
114
+ }
115
+ }
116
+
117
+ module.exports = {
118
+ getOwnFontsPath,
119
+ getAllFontPaths,
120
+ getOwnFontFamilies,
121
+ getAllFontFamilies,
122
+ getFontInfo,
123
+ isInstalled,
124
+ // Convenience exports
125
+ fontsPath: getOwnFontsPath(),
126
+ allPaths: getAllFontPaths(),
127
+ families: getAllFontFamilies()
128
+ };
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Merriweather Project Authors (https://github.com/EbenSorkin/Merriweather), with Reserved Font Name "Merriweather".
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,94 @@
1
+ Copyright (c) 2011, Vernon Adams (vern@newtypography.co.uk),
2
+ with Reserved Font Names 'Oswald' & 'Oswald-Regular'.
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1 @@
1
+ Apache 2.0 License - See https://github.com/googlefonts/roboto
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@michelabboud/visual-forge-fonts-standard",
3
+ "version": "1.0.0",
4
+ "description": "Standard fonts for Visual Forge MCP - Includes minimal + 11 more families",
5
+ "keywords": ["fonts", "typography", "pdf", "typst", "visual-forge"],
6
+ "author": "Michel Abboud",
7
+ "license": "SEE LICENSE IN LICENSE",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/michelabboud/visual-forge-fonts.git",
11
+ "directory": "packages/standard"
12
+ },
13
+ "main": "index.js",
14
+ "types": "index.d.ts",
15
+ "files": ["fonts", "licenses", "index.js", "index.d.ts", "DISCLAIMER.md"],
16
+ "scripts": { "postinstall": "node postinstall.js || true" },
17
+ "engines": { "node": ">=24.0.0" },
18
+ "dependencies": {
19
+ "@michelabboud/visual-forge-fonts-minimal": "^1.0.0"
20
+ }
21
+ }