pptx-kit-preview 0.0.0 → 0.3.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/README.md +100 -3
- package/dist/index.d.ts +42 -0
- package/dist/index.js +4569 -0
- package/dist/index.js.map +1 -0
- package/dist/node.d.ts +42 -0
- package/dist/node.js +4687 -0
- package/dist/node.js.map +1 -0
- package/fonts/Caladea-Bold.ttf +0 -0
- package/fonts/Caladea-BoldItalic.ttf +0 -0
- package/fonts/Caladea-Italic.ttf +0 -0
- package/fonts/Caladea-Regular.ttf +0 -0
- package/fonts/Carlito-Bold.ttf +0 -0
- package/fonts/Carlito-BoldItalic.ttf +0 -0
- package/fonts/Carlito-Italic.ttf +0 -0
- package/fonts/Carlito-Regular.ttf +0 -0
- package/fonts/LICENSES.md +123 -0
- package/fonts/LiberationMono-Bold.ttf +0 -0
- package/fonts/LiberationMono-BoldItalic.ttf +0 -0
- package/fonts/LiberationMono-Italic.ttf +0 -0
- package/fonts/LiberationMono-Regular.ttf +0 -0
- package/fonts/LiberationSans-Bold.ttf +0 -0
- package/fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/fonts/LiberationSans-Italic.ttf +0 -0
- package/fonts/LiberationSans-Regular.ttf +0 -0
- package/fonts/LiberationSerif-Bold.ttf +0 -0
- package/fonts/LiberationSerif-BoldItalic.ttf +0 -0
- package/fonts/LiberationSerif-Italic.ttf +0 -0
- package/fonts/LiberationSerif-Regular.ttf +0 -0
- package/package.json +51 -5
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Bundled font licenses
|
|
2
|
+
|
|
3
|
+
These TrueType fonts are **metric-compatible open substitutes** for the
|
|
4
|
+
proprietary Microsoft fonts that real `.pptx` files reference. The preview
|
|
5
|
+
fidelity harness loads them so resvg can rasterize text, and so that our
|
|
6
|
+
render matches LibreOffice's ground truth (LibreOffice ships and renders with
|
|
7
|
+
these very fonts when the proprietary originals are absent).
|
|
8
|
+
|
|
9
|
+
| Bundled font | Substitutes | License | Copyright |
|
|
10
|
+
| --- | --- | --- | --- |
|
|
11
|
+
| Carlito | Calibri / Calibri Light / Aptos | SIL OFL 1.1 | © 2010–2013 tyPoland Lukasz Dziedzic, Reserved Font Name "Carlito" |
|
|
12
|
+
| Caladea | Cambria | Apache License 2.0 | © 2012 Huerta Tipografía |
|
|
13
|
+
| Liberation Sans | Arial / Helvetica | SIL OFL 1.1 | © 2010 Google, © 2012 Red Hat, Inc. |
|
|
14
|
+
| Liberation Serif | Times New Roman | SIL OFL 1.1 | © 2010 Google, © 2012 Red Hat, Inc. |
|
|
15
|
+
| Liberation Mono | Courier New / Consolas | SIL OFL 1.1 | © 2010 Google, © 2012 Red Hat, Inc. |
|
|
16
|
+
|
|
17
|
+
Each font also embeds its license in its `name` table (OFL condition 2 is
|
|
18
|
+
satisfied by the binary itself); the texts below are reproduced for
|
|
19
|
+
convenience.
|
|
20
|
+
|
|
21
|
+
The fonts are used only by the Node-side fidelity harness (`site/fidelity/`).
|
|
22
|
+
They are not shipped in the browser bundle and are not part of the published
|
|
23
|
+
`pptx-kit` package.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## SIL Open Font License, Version 1.1 (Carlito, Liberation)
|
|
28
|
+
|
|
29
|
+
http://scripts.sil.org/OFL
|
|
30
|
+
|
|
31
|
+
PREAMBLE
|
|
32
|
+
|
|
33
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
34
|
+
development of collaborative font projects, to support the font creation
|
|
35
|
+
efforts of academic and linguistic communities, and to provide a free and open
|
|
36
|
+
framework in which fonts may be shared and improved in partnership with others.
|
|
37
|
+
|
|
38
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
39
|
+
redistributed freely as long as they are not sold by themselves. The fonts,
|
|
40
|
+
including any derivative works, can be bundled, embedded, redistributed and/or
|
|
41
|
+
sold with any software provided that any reserved names are not used by
|
|
42
|
+
derivative works. The fonts and derivatives, however, cannot be released under
|
|
43
|
+
any other type of license. The requirement for fonts to remain under this
|
|
44
|
+
license does not apply to any document created using the fonts or their
|
|
45
|
+
derivatives.
|
|
46
|
+
|
|
47
|
+
DEFINITIONS
|
|
48
|
+
|
|
49
|
+
"Font Software" refers to the set of files released by the Copyright Holder(s)
|
|
50
|
+
under this license and clearly marked as such. This may include source files,
|
|
51
|
+
build scripts and documentation.
|
|
52
|
+
|
|
53
|
+
"Reserved Font Name" refers to any names specified as such after the copyright
|
|
54
|
+
statement(s).
|
|
55
|
+
|
|
56
|
+
"Original Version" refers to the collection of Font Software components as
|
|
57
|
+
distributed by the Copyright Holder(s).
|
|
58
|
+
|
|
59
|
+
"Modified Version" refers to any derivative made by adding to, deleting, or
|
|
60
|
+
substituting – in part or in whole – any of the components of the Original
|
|
61
|
+
Version, by changing formats or by porting the Font Software to a new
|
|
62
|
+
environment.
|
|
63
|
+
|
|
64
|
+
"Author" refers to any designer, engineer, programmer, technical writer or
|
|
65
|
+
other person who contributed to the Font Software.
|
|
66
|
+
|
|
67
|
+
PERMISSION & CONDITIONS
|
|
68
|
+
|
|
69
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
70
|
+
the Font Software, to use, study, copy, merge, embed, modify, redistribute, and
|
|
71
|
+
sell modified and unmodified copies of the Font Software, subject to the
|
|
72
|
+
following conditions:
|
|
73
|
+
|
|
74
|
+
1. Neither the Font Software nor any of its individual components, in Original
|
|
75
|
+
or Modified Versions, may be sold by itself.
|
|
76
|
+
|
|
77
|
+
2. Original or Modified Versions of the Font Software may be bundled,
|
|
78
|
+
redistributed and/or sold with any software, provided that each copy contains
|
|
79
|
+
the above copyright notice and this license. These can be included either as
|
|
80
|
+
stand-alone text files, human-readable headers or in the appropriate
|
|
81
|
+
machine-readable metadata fields within text or binary files as long as those
|
|
82
|
+
fields can be easily viewed by the user.
|
|
83
|
+
|
|
84
|
+
3. No Modified Version of the Font Software may use the Reserved Font Name(s)
|
|
85
|
+
unless explicit written permission is granted by the corresponding Copyright
|
|
86
|
+
Holder. This restriction only applies to the primary font name as presented to
|
|
87
|
+
the users.
|
|
88
|
+
|
|
89
|
+
4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software
|
|
90
|
+
shall not be used to promote, endorse or advertise any Modified Version, except
|
|
91
|
+
to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s)
|
|
92
|
+
or with their explicit written permission.
|
|
93
|
+
|
|
94
|
+
5. The Font Software, modified or unmodified, in part or in whole, must be
|
|
95
|
+
distributed entirely under this license, and must not be distributed under any
|
|
96
|
+
other license. The requirement for fonts to remain under this license does not
|
|
97
|
+
apply to any document created using the Font Software.
|
|
98
|
+
|
|
99
|
+
TERMINATION
|
|
100
|
+
|
|
101
|
+
This license becomes null and void if any of the above conditions are not met.
|
|
102
|
+
|
|
103
|
+
DISCLAIMER
|
|
104
|
+
|
|
105
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
107
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR
|
|
108
|
+
OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
|
|
109
|
+
DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL,
|
|
110
|
+
OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
111
|
+
ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
|
|
112
|
+
DEALINGS IN THE FONT SOFTWARE.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Apache License 2.0 (Caladea)
|
|
117
|
+
|
|
118
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
119
|
+
|
|
120
|
+
Caladea is licensed under the Apache License, Version 2.0. The full text is
|
|
121
|
+
available at the URL above. The font binary embeds this license notice in its
|
|
122
|
+
`name` table. Apache-2.0 permits redistribution provided the license and any
|
|
123
|
+
NOTICE are retained; this file serves that purpose.
|
|
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/package.json
CHANGED
|
@@ -1,13 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-kit-preview",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Experimental preview renderer for pptx-kit: render
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Experimental preview renderer for pptx-kit: render a slide to SVG (browser + Node) or rasterize it to a PNG/RGBA image in Node, with no browser binary.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ooxml",
|
|
7
|
+
"png",
|
|
8
|
+
"powerpoint",
|
|
9
|
+
"pptx",
|
|
10
|
+
"preview",
|
|
11
|
+
"render",
|
|
12
|
+
"svg"
|
|
13
|
+
],
|
|
5
14
|
"license": "MIT",
|
|
6
|
-
"author": "baseballyama",
|
|
7
15
|
"repository": {
|
|
8
16
|
"type": "git",
|
|
9
17
|
"url": "git+https://github.com/baseballyama/pptx-kit.git",
|
|
10
18
|
"directory": "packages/preview"
|
|
11
19
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"fonts",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./node": {
|
|
33
|
+
"types": "./dist/node.d.ts",
|
|
34
|
+
"import": "./dist/node.js"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"provenance": true
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
44
|
+
"fontkit": "^2.0.4"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/fontkit": "^2.0.9",
|
|
48
|
+
"tsup": "^8.5.1",
|
|
49
|
+
"typescript": "^6.0.3",
|
|
50
|
+
"pptx-kit": "0.5.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"pptx-kit": ">=0.1.0"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"typecheck": "tsc --noEmit"
|
|
58
|
+
}
|
|
59
|
+
}
|