@docx-editor.dev/fonts-cjk 0.0.1 → 2.23.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/LICENSE ADDED
@@ -0,0 +1,210 @@
1
+ This Apache-2.0 license covers this package's own code only.
2
+
3
+ The font binary under `assets/` is NOT Apache-2.0. Noto Sans CJK JP is under
4
+ the SIL Open Font License 1.1. Its license text ships alongside the binary in
5
+ `licenses/`.
6
+
7
+ -------------------------------------------------------------------------------
8
+
9
+
10
+ Apache License
11
+ Version 2.0, January 2004
12
+ http://www.apache.org/licenses/
13
+
14
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
15
+
16
+ 1. Definitions.
17
+
18
+ "License" shall mean the terms and conditions for use, reproduction,
19
+ and distribution as defined by Sections 1 through 9 of this document.
20
+
21
+ "Licensor" shall mean the copyright owner or entity authorized by
22
+ the copyright owner that is granting the License.
23
+
24
+ "Legal Entity" shall mean the union of the acting entity and all
25
+ other entities that control, are controlled by, or are under common
26
+ control with that entity. For the purposes of this definition,
27
+ "control" means (i) the power, direct or indirect, to cause the
28
+ direction or management of such entity, whether by contract or
29
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
30
+ outstanding shares, or (iii) beneficial ownership of such entity.
31
+
32
+ "You" (or "Your") shall mean an individual or Legal Entity
33
+ exercising permissions granted by this License.
34
+
35
+ "Source" form shall mean the preferred form for making modifications,
36
+ including but not limited to software source code, documentation
37
+ source, and configuration files.
38
+
39
+ "Object" form shall mean any form resulting from mechanical
40
+ transformation or translation of a Source form, including but
41
+ not limited to compiled object code, generated documentation,
42
+ and conversions to other media types.
43
+
44
+ "Work" shall mean the work of authorship, whether in Source or
45
+ Object form, made available under the License, as indicated by a
46
+ copyright notice that is included in or attached to the work
47
+ (an example is provided in the Appendix below).
48
+
49
+ "Derivative Works" shall mean any work, whether in Source or Object
50
+ form, that is based on (or derived from) the Work and for which the
51
+ editorial revisions, annotations, elaborations, or other modifications
52
+ represent, as a whole, an original work of authorship. For the purposes
53
+ of this License, Derivative Works shall not include works that remain
54
+ separable from, or merely link (or bind by name) to the interfaces of,
55
+ the Work and Derivative Works thereof.
56
+
57
+ "Contribution" shall mean any work of authorship, including
58
+ the original version of the Work and any modifications or additions
59
+ to that Work or Derivative Works thereof, that is intentionally
60
+ submitted to Licensor for inclusion in the Work by the copyright owner
61
+ or by an individual or Legal Entity authorized to submit on behalf of
62
+ the copyright owner. For the purposes of this definition, "submitted"
63
+ means any form of electronic, verbal, or written communication sent
64
+ to the Licensor or its representatives, including but not limited to
65
+ communication on electronic mailing lists, source code control systems,
66
+ and issue tracking systems that are managed by, or on behalf of, the
67
+ Licensor for the purpose of discussing and improving the Work, but
68
+ excluding communication that is conspicuously marked or otherwise
69
+ designated in writing by the copyright owner as "Not a Contribution."
70
+
71
+ "Contributor" shall mean Licensor and any individual or Legal Entity
72
+ on behalf of whom a Contribution has been received by Licensor and
73
+ subsequently incorporated within the Work.
74
+
75
+ 2. Grant of Copyright License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ copyright license to reproduce, prepare Derivative Works of,
79
+ publicly display, publicly perform, sublicense, and distribute the
80
+ Work and such Derivative Works in Source or Object form.
81
+
82
+ 3. Grant of Patent License. Subject to the terms and conditions of
83
+ this License, each Contributor hereby grants to You a perpetual,
84
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
85
+ (except as stated in this section) patent license to make, have made,
86
+ use, offer to sell, sell, import, and otherwise transfer the Work,
87
+ where such license applies only to those patent claims licensable
88
+ by such Contributor that are necessarily infringed by their
89
+ Contribution(s) alone or by combination of their Contribution(s)
90
+ with the Work to which such Contribution(s) was submitted. If You
91
+ institute patent litigation against any entity (including a
92
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
93
+ or a Contribution incorporated within the Work constitutes direct
94
+ or contributory patent infringement, then any patent licenses
95
+ granted to You under this License for that Work shall terminate
96
+ as of the date such litigation is filed.
97
+
98
+ 4. Redistribution. You may reproduce and distribute copies of the
99
+ Work or Derivative Works thereof in any medium, with or without
100
+ modifications, and in Source or Object form, provided that You
101
+ meet the following conditions:
102
+
103
+ (a) You must give any other recipients of the Work or
104
+ Derivative Works a copy of this License; and
105
+
106
+ (b) You must cause any modified files to carry prominent notices
107
+ stating that You changed the files; and
108
+
109
+ (c) You must retain, in the Source form of any Derivative Works
110
+ that You distribute, all copyright, patent, trademark, and
111
+ attribution notices from the Source form of the Work,
112
+ excluding those notices that do not pertain to any part of
113
+ the Derivative Works; and
114
+
115
+ (d) If the Work includes a "NOTICE" text file as part of its
116
+ distribution, then any Derivative Works that You distribute must
117
+ include a readable copy of the attribution notices contained
118
+ within such NOTICE file, excluding those notices that do not
119
+ pertain to any part of the Derivative Works, in at least one
120
+ of the following places: within a NOTICE text file distributed
121
+ as part of the Derivative Works; within the Source form or
122
+ documentation, if provided along with the Derivative Works; or,
123
+ within a display generated by the Derivative Works, if and
124
+ wherever such third-party notices normally appear. The contents
125
+ of the NOTICE file are for informational purposes only and
126
+ do not modify the License. You may add Your own attribution
127
+ notices within Derivative Works that You distribute, alongside
128
+ or as an addendum to the NOTICE text from the Work, provided
129
+ that such additional attribution notices cannot be construed
130
+ as modifying the License.
131
+
132
+ You may add Your own copyright statement to Your modifications and
133
+ may provide additional or different license terms and conditions
134
+ for use, reproduction, or distribution of Your modifications, or
135
+ for any such Derivative Works as a whole, provided Your use,
136
+ reproduction, and distribution of the Work otherwise complies with
137
+ the conditions stated in this License.
138
+
139
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
140
+ any Contribution intentionally submitted for inclusion in the Work
141
+ by You to the Licensor shall be under the terms and conditions of
142
+ this License, without any additional terms or conditions.
143
+ Notwithstanding the above, nothing herein shall supersede or modify
144
+ the terms of any separate license agreement you may have executed
145
+ with Licensor regarding such Contributions.
146
+
147
+ 6. Trademarks. This License does not grant permission to use the trade
148
+ names, trademarks, service marks, or product names of the Licensor,
149
+ except as required for reasonable and customary use in describing the
150
+ origin of the Work and reproducing the content of the NOTICE file.
151
+
152
+ 7. Disclaimer of Warranty. Unless required by applicable law or
153
+ agreed to in writing, Licensor provides the Work (and each
154
+ Contributor provides its Contributions) on an "AS IS" BASIS,
155
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
156
+ implied, including, without limitation, any warranties or conditions
157
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
158
+ PARTICULAR PURPOSE. You are solely responsible for determining the
159
+ appropriateness of using or redistributing the Work and assume any
160
+ risks associated with Your exercise of permissions under this License.
161
+
162
+ 8. Limitation of Liability. In no event and under no legal theory,
163
+ whether in tort (including negligence), contract, or otherwise,
164
+ unless required by applicable law (such as deliberate and grossly
165
+ negligent acts) or agreed to in writing, shall any Contributor be
166
+ liable to You for damages, including any direct, indirect, special,
167
+ incidental, or consequential damages of any character arising as a
168
+ result of this License or out of the use or inability to use the
169
+ Work (including but not limited to damages for loss of goodwill,
170
+ work stoppage, computer failure or malfunction, or any and all
171
+ other commercial damages or losses), even if such Contributor
172
+ has been advised of the possibility of such damages.
173
+
174
+ 9. Accepting Warranty or Additional Liability. While redistributing
175
+ the Work or Derivative Works thereof, You may choose to offer,
176
+ and charge a fee for, acceptance of support, warranty, indemnity,
177
+ or other liability obligations and/or rights consistent with this
178
+ License. However, in accepting such obligations, You may act only
179
+ on Your own behalf and on Your sole responsibility, not on behalf
180
+ of any other Contributor, and only if You agree to indemnify,
181
+ defend, and hold each Contributor harmless for any liability
182
+ incurred by, or claims asserted against, such Contributor by reason
183
+ of your accepting any such warranty or additional liability.
184
+
185
+ END OF TERMS AND CONDITIONS
186
+
187
+ APPENDIX: How to apply the Apache License to your work.
188
+
189
+ To apply the Apache License to your work, attach the following
190
+ boilerplate notice, with the fields enclosed by brackets "[]"
191
+ replaced with your own identifying information. (Don't include
192
+ the brackets!) The text should be enclosed in the appropriate
193
+ comment syntax for the file format. We also recommend that a
194
+ file or class name and description of purpose be included on the
195
+ same "printed page" as the copyright notice for easier
196
+ identification within third-party archives.
197
+
198
+ Copyright 2026 EigenPal Inc.
199
+
200
+ Licensed under the Apache License, Version 2.0 (the "License");
201
+ you may not use this file except in compliance with the License.
202
+ You may obtain a copy of the License at
203
+
204
+ http://www.apache.org/licenses/LICENSE-2.0
205
+
206
+ Unless required by applicable law or agreed to in writing, software
207
+ distributed under the License is distributed on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
+ See the License for the specific language governing permissions and
210
+ limitations under the License.
package/README.md CHANGED
@@ -1,4 +1,77 @@
1
1
  # @docx-editor.dev/fonts-cjk
2
2
 
3
- This placeholder establishes the npm package for release setup.
4
- It contains no fonts or executable code.
3
+ This package supplies Noto Sans CJK JP for Chinese, Japanese, and Korean text. The [`@docx-editor.dev/docx-to-pdf`](https://www.npmjs.com/package/@docx-editor.dev/docx-to-pdf) package uses it as an optional fallback. The font file is about 16 MB, so it ships separately.
4
+
5
+ ## Install
6
+
7
+ Use Node.js `^20.16.0 || >=22.3.0`. Install the package with the PDF converter and its required engine peer:
8
+
9
+ ```bash
10
+ npm install @docx-editor.dev/docx-to-pdf @docx-editor.dev/core @docx-editor.dev/fonts-cjk
11
+ ```
12
+
13
+ The converter declares `@docx-editor.dev/fonts-cjk` as an optional peer dependency. Use versions that satisfy the converter's peer dependency ranges. PDF export finds the package without configuration and reads its font from disk. It makes no network request for the font.
14
+
15
+ ## Font selection
16
+
17
+ PDF export uses this font when earlier sources lack the requested CJK family or characters. Your `fonts`, enabled system fonts, packaged substitutes, and `fallbackFonts` sources take priority. This font resolves before document-embedded fonts and `lastResortFonts`. For the complete order, see [Configure PDF fonts](../docx-to-pdf/docs/fonts.md#choose-a-source).
18
+
19
+ The default glyph fallback list includes this font. If you supply `glyphFallbacks`, your list replaces the defaults. For this fallback, add an entry with `family: NOTO_SANS_CJK_JP_FAMILY`, `weight: 400`, and `style: 'normal'`.
20
+
21
+ You can omit this package when installed or supplied fonts cover your CJK text. Installed fonts such as SimSun, Batang, and MS Gothic take priority when `useSystemFonts` is `true`. If no font covers a CJK character, export reports a `missing-glyph` diagnostic. When this package is absent, the diagnostic names it. Strict export fails for missing glyphs.
22
+
23
+ ## Deploy the package
24
+
25
+ Add the package to your production dependencies. Keep it external to your server bundle so Node.js can resolve it at runtime. Retain its `dist/` and `assets/` directories in their package locations. Include its license files when distributing the package.
26
+
27
+ An installed package with missing or unreadable font assets reports `font-origin-failed`. Inspect `result.fontResolution.originFailures` to find the cause. Setting `fontPolicy: 'strict'` rejects these source failures.
28
+
29
+ For deployment examples, see [Integrate PDF conversion](../docx-to-pdf/docs/integrations.md).
30
+
31
+ ## Use the font directly
32
+
33
+ The package has two public exports:
34
+
35
+ | Export | Type | Value |
36
+ | --- | --- | --- |
37
+ | `NOTO_SANS_CJK_JP_FAMILY` | String literal | `'Noto Sans CJK JP'` |
38
+ | `NOTO_SANS_CJK_JP_URL` | `URL` | A `file:` URL for `assets/NotoSansCJKjp-Regular.otf`. |
39
+
40
+ Use the exported URL to read the font without constructing a package path:
41
+
42
+ ```ts
43
+ import { readFile } from 'node:fs/promises';
44
+ import {
45
+ NOTO_SANS_CJK_JP_FAMILY,
46
+ NOTO_SANS_CJK_JP_URL,
47
+ } from '@docx-editor.dev/fonts-cjk';
48
+
49
+ const bytes = await readFile(NOTO_SANS_CJK_JP_URL);
50
+ console.log(NOTO_SANS_CJK_JP_FAMILY, bytes.byteLength);
51
+ ```
52
+
53
+ The package runs on Node.js. It does not bundle the font into JavaScript or install a browser font.
54
+
55
+ ## Coverage and limits
56
+
57
+ - The package includes one OpenType font with CFF outlines: Noto Sans CJK JP Regular.
58
+ - Its weight is `400`, and its style is `'normal'`.
59
+ - It supplies the Japanese regional face, without separate Chinese or Korean regional faces.
60
+ - PDF export can synthesize bold and italic from this regular face.
61
+ - Substituting this font can change glyph forms, line breaks, and page counts.
62
+ - Characters outside the font's coverage still require another font.
63
+
64
+ Supply your own font through the converter's `fonts` option when you need a specific regional face or designed style.
65
+
66
+ ## Licenses
67
+
68
+ The package code uses the Apache License 2.0. For more information, see [`LICENSE`](LICENSE). The PDF converter uses the separate [EigenPal Pro License](../docx-to-pdf/LICENSE.md).
69
+
70
+ The font uses the SIL Open Font License, Version 1.1. The license text is in [`licenses/NotoSansCJK-OFL.txt`](licenses/NotoSansCJK-OFL.txt).
71
+
72
+ - Font: Noto Sans CJK JP Regular, version 2.004.
73
+ - Copyright: © 2014-2021 Adobe (http://www.adobe.com/).
74
+ - Trademark: Noto is a trademark of Google Inc.
75
+ - Source: [`notofonts/noto-cjk`](https://github.com/notofonts/noto-cjk/blob/main/Sans/OTF/Japanese/NotoSansCJKjp-Regular.otf).
76
+
77
+ The font file is the unmodified upstream binary. [`assets/sources.json`](assets/sources.json) records its source URL and SHA-256 hash. PDF export embeds only the glyphs that the document uses.
@@ -0,0 +1,24 @@
1
+ # Third-party notices
2
+
3
+ `@docx-editor.dev/fonts-cjk` is distributed under Apache-2.0 AND OFL-1.1. Its published bundles also contain
4
+ source from the open-source packages listed below, redistributed here under
5
+ their own licenses, reproduced in full.
6
+
7
+ Those copies are not verbatim. The build inlines, minifies and tree-shakes
8
+ them, and includes only the parts each bundle reaches, so what ships is a
9
+ modified form of the original source.
10
+
11
+ This file covers code copied INTO the published bundles. Packages this one
12
+ declares as `dependencies` or `peerDependencies` are installed separately by
13
+ the consumer and are not repeated here.
14
+
15
+ Generated by `bun run notices:generate` from the build's esbuild metafile.
16
+ Do not edit by hand.
17
+
18
+ This package also ships prebuilt third-party assets that are not esbuild inputs,
19
+ so they cannot appear below. Their licenses travel with the package in
20
+ `licenses/`:
21
+
22
+ - `licenses/NotoSansCJK-OFL.txt`
23
+
24
+ No third-party code is bundled into this package.
Binary file
@@ -0,0 +1,11 @@
1
+ {
2
+ "NotoSansCJKjp-Regular.otf": {
3
+ "url": "https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/OTF/Japanese/NotoSansCJKjp-Regular.otf",
4
+ "sha256": "68a3fc98800b2a27b371f2fb79991daf3633bd89309d4ffaa6946fd587f375b5",
5
+ "installedSha256": "68a3fc98800b2a27b371f2fb79991daf3633bd89309d4ffaa6946fd587f375b5"
6
+ },
7
+ "NotoSansCJK-OFL.txt": {
8
+ "url": "https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/LICENSE",
9
+ "sha256": "6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2"
10
+ }
11
+ }
package/dist/index.cjs ADDED
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ NOTO_SANS_CJK_JP_FAMILY: () => NOTO_SANS_CJK_JP_FAMILY,
24
+ NOTO_SANS_CJK_JP_URL: () => NOTO_SANS_CJK_JP_URL
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+ var import_node_url = require("url");
28
+ var import_meta = {};
29
+ var NOTO_SANS_CJK_JP_FAMILY = "Noto Sans CJK JP";
30
+ var NOTO_SANS_CJK_JP_URL = new URL(
31
+ "../assets/NotoSansCJKjp-Regular.otf",
32
+ // The CommonJS build has no `import.meta`, and its `__dirname` is the same `dist/`.
33
+ typeof __dirname === "string" ? (0, import_node_url.pathToFileURL)(__dirname + "/").href : import_meta.url
34
+ );
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ NOTO_SANS_CJK_JP_FAMILY,
38
+ NOTO_SANS_CJK_JP_URL
39
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Family name of the packaged face.
3
+ *
4
+ * @public
5
+ */
6
+ declare const NOTO_SANS_CJK_JP_FAMILY = "Noto Sans CJK JP";
7
+ /**
8
+ * `file:` URL of the packaged face, `NotoSansCJKjp-Regular.otf`: one weight (400), one style
9
+ * (normal), OpenType with CFF outlines.
10
+ *
11
+ * @public
12
+ */
13
+ declare const NOTO_SANS_CJK_JP_URL: URL;
14
+
15
+ export { NOTO_SANS_CJK_JP_FAMILY, NOTO_SANS_CJK_JP_URL };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Family name of the packaged face.
3
+ *
4
+ * @public
5
+ */
6
+ declare const NOTO_SANS_CJK_JP_FAMILY = "Noto Sans CJK JP";
7
+ /**
8
+ * `file:` URL of the packaged face, `NotoSansCJKjp-Regular.otf`: one weight (400), one style
9
+ * (normal), OpenType with CFF outlines.
10
+ *
11
+ * @public
12
+ */
13
+ declare const NOTO_SANS_CJK_JP_URL: URL;
14
+
15
+ export { NOTO_SANS_CJK_JP_FAMILY, NOTO_SANS_CJK_JP_URL };
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ // src/index.ts
2
+ import { pathToFileURL } from "url";
3
+ var NOTO_SANS_CJK_JP_FAMILY = "Noto Sans CJK JP";
4
+ var NOTO_SANS_CJK_JP_URL = new URL(
5
+ "../assets/NotoSansCJKjp-Regular.otf",
6
+ // The CommonJS build has no `import.meta`, and its `__dirname` is the same `dist/`.
7
+ typeof __dirname === "string" ? pathToFileURL(__dirname + "/").href : import.meta.url
8
+ );
9
+ export {
10
+ NOTO_SANS_CJK_JP_FAMILY,
11
+ NOTO_SANS_CJK_JP_URL
12
+ };
@@ -0,0 +1,92 @@
1
+ This Font Software is licensed under the SIL Open Font License,
2
+ Version 1.1.
3
+
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font
14
+ creation efforts of academic and linguistic communities, and to
15
+ provide a free and open framework in which fonts may be shared and
16
+ improved in partnership with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply to
25
+ any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software
36
+ components as distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to,
39
+ deleting, or substituting -- in part or in whole -- any of the
40
+ components of the Original Version, by changing formats or by porting
41
+ the Font Software to a new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION & CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed,
49
+ modify, redistribute, and sell modified and unmodified copies of the
50
+ Font Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components, in
53
+ Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the
64
+ corresponding Copyright Holder. This restriction only applies to the
65
+ primary font name as presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created using
77
+ the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/package.json CHANGED
@@ -1,19 +1,61 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/fonts-cjk",
3
- "version": "0.0.1",
4
- "description": "Placeholder for the optional CJK font package.",
5
- "license": "Apache-2.0",
3
+ "version": "2.23.0",
4
+ "description": "Noto Sans CJK JP fallback font for Chinese, Japanese, and Korean text in @docx-editor.dev/docx-to-pdf.",
5
+ "sideEffects": false,
6
+ "type": "module",
7
+ "engines": {
8
+ "node": "^20.16.0 || >=22.3.0"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "require": {
13
+ "types": "./dist/index.d.cts",
14
+ "default": "./dist/index.cjs"
15
+ },
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
6
21
  "files": [
7
- "README.md"
22
+ "dist",
23
+ "!dist/metafile-*.json",
24
+ "assets",
25
+ "licenses",
26
+ "LICENSE",
27
+ "README.md",
28
+ "THIRD_PARTY_NOTICES.md"
29
+ ],
30
+ "scripts": {
31
+ "build": "tsup",
32
+ "typecheck": "tsc --noEmit",
33
+ "api:extract": "node ../../scripts/api-extractor.mjs --package @docx-editor.dev/fonts-cjk --local",
34
+ "api:check": "node ../../scripts/api-extractor.mjs --package @docx-editor.dev/fonts-cjk"
35
+ },
36
+ "devDependencies": {
37
+ "typescript": "^5.3.3"
38
+ },
39
+ "keywords": [
40
+ "docx",
41
+ "pdf",
42
+ "fonts",
43
+ "cjk",
44
+ "noto"
8
45
  ],
46
+ "author": {
47
+ "name": "Jedr Blaszyk",
48
+ "email": "jedr@eigenpal.com",
49
+ "url": "https://github.com/jedrazb"
50
+ },
51
+ "license": "Apache-2.0 AND OFL-1.1",
52
+ "homepage": "https://docx-editor.dev/",
9
53
  "repository": {
10
54
  "type": "git",
11
- "url": "git+https://github.com/eigenpal/docx-editor.git",
55
+ "url": "https://github.com/eigenpal/docx-editor.git",
12
56
  "directory": "packages/fonts-cjk"
13
57
  },
14
58
  "publishConfig": {
15
- "access": "public",
16
- "tag": "bootstrap",
17
- "registry": "https://registry.npmjs.org/"
59
+ "access": "public"
18
60
  }
19
61
  }