{"_id":"@embedpdf/fonts-sc","name":"@embedpdf/fonts-sc","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@embedpdf/fonts-sc","version":"1.0.0","private":false,"description":"Simplified Chinese (GB2312) fallback fonts for EmbedPDF - Noto Sans Hans (5 weights)","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"keywords":["fonts","noto","chinese","simplified","pdf","embedpdf","cjk"],"repository":{"type":"git","url":"git+https://github.com/embedpdf/embed-pdf-viewer.git","directory":"packages/fonts/sc"},"homepage":"https://www.embedpdf.com/docs","bugs":{"url":"https://github.com/embedpdf/embed-pdf-viewer/issues"},"author":{"name":"Bob Singor"},"license":"OFL-1.1","devDependencies":{"typescript":"^5.0.0","@embedpdf/build":"1.1.0","@embedpdf/models":"2.1.0"},"publishConfig":{"access":"public"},"scripts":{"build":"vite build","clean":"rimraf dist"},"_id":"@embedpdf/fonts-sc@1.0.0","_integrity":"sha512-ETXl7XCwaQLSSvMO3EUDwMNqtL64kX2LlFxarTRi/NsIGGOIxUurGfKtrkmtnKHrWy1jAJSt6oxK2uJhvdvQIw==","_resolved":"/tmp/52ec6974626c49b468c6e95bf2277cca/embedpdf-fonts-sc-1.0.0.tgz","_from":"file:embedpdf-fonts-sc-1.0.0.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-ETXl7XCwaQLSSvMO3EUDwMNqtL64kX2LlFxarTRi/NsIGGOIxUurGfKtrkmtnKHrWy1jAJSt6oxK2uJhvdvQIw==","shasum":"a52a70b3cb36e9e49148f2055f51d0fa387f41bf","tarball":"https://registry.npmjs.org/@embedpdf/fonts-sc/-/fonts-sc-1.0.0.tgz","fileCount":13,"unpackedSize":42014105,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCV8FLSPevGjg2I2NEPb6Y/Sbjxe3uW/+SxWdsS5jroqgIhAKLNlt1heyiDjmDnwAvss4dFrQMd+gQqufjjJIrXMaqo"}]},"_npmUser":{"name":"bobsingor","email":"bob.singor@openbook.io"},"directories":{},"maintainers":[{"name":"bobsingor","email":"bob.singor@openbook.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fonts-sc_1.0.0_1766935987700_0.6623837178042027"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-28T15:33:07.619Z","1.0.0":"2025-12-28T15:33:08.738Z","modified":"2025-12-28T15:33:09.025Z"},"maintainers":[{"name":"bobsingor","email":"bob.singor@openbook.io"}],"description":"Simplified Chinese (GB2312) fallback fonts for EmbedPDF - Noto Sans Hans (5 weights)","homepage":"https://www.embedpdf.com/docs","keywords":["fonts","noto","chinese","simplified","pdf","embedpdf","cjk"],"repository":{"type":"git","url":"git+https://github.com/embedpdf/embed-pdf-viewer.git","directory":"packages/fonts/sc"},"author":{"name":"Bob Singor"},"bugs":{"url":"https://github.com/embedpdf/embed-pdf-viewer/issues"},"license":"OFL-1.1","readme":"# @embedpdf/fonts-sc\n\nSimplified Chinese (GB2312) fallback fonts for EmbedPDF.\n\n## Included Fonts\n\n5 weights of Noto Sans Hans (Simplified Chinese):\n\n- `NotoSansHans-Light.otf` - Light weight (300)\n- `NotoSansHans-DemiLight.otf` - DemiLight weight (350)\n- `NotoSansHans-Regular.otf` - Regular weight (400)\n- `NotoSansHans-Medium.otf` - Medium weight (500)\n- `NotoSansHans-Bold.otf` - Bold weight (700)\n\nNote: Thin and Black weights are not included to keep the package under size limits.\n\n## Usage\n\n```typescript\nimport { FontCharset } from '@embedpdf/models';\n\nconst fontFallback = {\n  fonts: {\n    [FontCharset.GB2312]: [\n      { url: 'NotoSansHans-Light.otf', weight: 300 },\n      { url: 'NotoSansHans-DemiLight.otf', weight: 350 },\n      { url: 'NotoSansHans-Regular.otf', weight: 400 },\n      { url: 'NotoSansHans-Medium.otf', weight: 500 },\n      { url: 'NotoSansHans-Bold.otf', weight: 700 },\n    ],\n  },\n  baseUrl: 'https://cdn.jsdelivr.net/npm/@embedpdf/fonts-sc@1/fonts',\n};\n```\n\nOr use the pre-configured CDN config:\n\n```typescript\nimport { cdnFontConfig } from '@embedpdf/engines/pdfium';\n\nconst native = new PdfiumNative(pdfiumModule, {\n  fontFallback: cdnFontConfig,\n});\n```\n\n## License\n\nThese fonts are licensed under the [SIL Open Font License 1.1](https://scripts.sil.org/OFL).\n\nNoto Sans Hans is a trademark of Google LLC.\n","readmeFilename":"README.md","_rev":"1-01f2e69cce4705b6718827ce783fae4d"}