{"_id":"@embedpdf/fonts-latin","name":"@embedpdf/fonts-latin","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@embedpdf/fonts-latin","version":"1.0.0","private":false,"description":"Latin/European fallback fonts for EmbedPDF - Noto Sans (9 weights × 2 styles)","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","latin","cyrillic","greek","pdf","embedpdf"],"repository":{"type":"git","url":"git+https://github.com/embedpdf/embed-pdf-viewer.git","directory":"packages/fonts/latin"},"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-latin@1.0.0","_integrity":"sha512-LLYysdr8O6sRNzhmW3PbF3AeA8xnqvOi4XLFfIfNlW5uEZ+qsJdcfd78Q78sFJMhlaOAYFMziMMsnOzmx463rA==","_resolved":"/tmp/a957b326c1a7543c95b6dcc2b3580b49/embedpdf-fonts-latin-1.0.0.tgz","_from":"file:embedpdf-fonts-latin-1.0.0.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-LLYysdr8O6sRNzhmW3PbF3AeA8xnqvOi4XLFfIfNlW5uEZ+qsJdcfd78Q78sFJMhlaOAYFMziMMsnOzmx463rA==","shasum":"b646560c2c147f0ccbf04ae26ef18c7822506240","tarball":"https://registry.npmjs.org/@embedpdf/fonts-latin/-/fonts-latin-1.0.0.tgz","fileCount":26,"unpackedSize":11483480,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC9iZZlY6HiaMcqGMaEqIwkNxAy5hqj9qOU8PG/olLG8wIhAK4oLd0iTTuLjvE38Xqf4p72mXAAkXuiEyjPUO6ipZ3e"}]},"_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-latin_1.0.0_1766935979639_0.49931738642974577"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-28T15:32:59.536Z","1.0.0":"2025-12-28T15:32:59.961Z","modified":"2025-12-28T15:33:00.286Z"},"maintainers":[{"name":"bobsingor","email":"bob.singor@openbook.io"}],"description":"Latin/European fallback fonts for EmbedPDF - Noto Sans (9 weights × 2 styles)","homepage":"https://www.embedpdf.com/docs","keywords":["fonts","noto","latin","cyrillic","greek","pdf","embedpdf"],"repository":{"type":"git","url":"git+https://github.com/embedpdf/embed-pdf-viewer.git","directory":"packages/fonts/latin"},"author":{"name":"Bob Singor"},"bugs":{"url":"https://github.com/embedpdf/embed-pdf-viewer/issues"},"license":"OFL-1.1","readme":"# @embedpdf/fonts-latin\n\nLatin, Cyrillic, Greek, and Vietnamese fallback fonts for EmbedPDF.\n\n## Included Fonts\n\nAll 9 weights of Noto Sans, including italic variants (18 fonts total):\n\n| Weight           | Regular                   | Italic                          |\n| ---------------- | ------------------------- | ------------------------------- |\n| 100 (Thin)       | `NotoSans-Thin.ttf`       | `NotoSans-ThinItalic.ttf`       |\n| 200 (ExtraLight) | `NotoSans-ExtraLight.ttf` | `NotoSans-ExtraLightItalic.ttf` |\n| 300 (Light)      | `NotoSans-Light.ttf`      | `NotoSans-LightItalic.ttf`      |\n| 400 (Regular)    | `NotoSans-Regular.ttf`    | `NotoSans-Italic.ttf`           |\n| 500 (Medium)     | `NotoSans-Medium.ttf`     | `NotoSans-MediumItalic.ttf`     |\n| 600 (SemiBold)   | `NotoSans-SemiBold.ttf`   | `NotoSans-SemiBoldItalic.ttf`   |\n| 700 (Bold)       | `NotoSans-Bold.ttf`       | `NotoSans-BoldItalic.ttf`       |\n| 800 (ExtraBold)  | `NotoSans-ExtraBold.ttf`  | `NotoSans-ExtraBoldItalic.ttf`  |\n| 900 (Black)      | `NotoSans-Black.ttf`      | `NotoSans-BlackItalic.ttf`      |\n\n## Supported Charsets\n\nThis font covers multiple charsets used by PDFium:\n\n- `FontCharset.CYRILLIC` (204) - Russian, Ukrainian, Bulgarian, etc.\n- `FontCharset.GREEK` (161) - Greek\n- `FontCharset.VIETNAMESE` (163) - Vietnamese\n\n## Usage\n\n```typescript\nimport { FontCharset } from '@embedpdf/models';\n\nconst latinFonts = [\n  { url: 'NotoSans-Thin.ttf', weight: 100 },\n  { url: 'NotoSans-ThinItalic.ttf', weight: 100, italic: true },\n  { url: 'NotoSans-ExtraLight.ttf', weight: 200 },\n  { url: 'NotoSans-ExtraLightItalic.ttf', weight: 200, italic: true },\n  { url: 'NotoSans-Light.ttf', weight: 300 },\n  { url: 'NotoSans-LightItalic.ttf', weight: 300, italic: true },\n  { url: 'NotoSans-Regular.ttf', weight: 400 },\n  { url: 'NotoSans-Italic.ttf', weight: 400, italic: true },\n  { url: 'NotoSans-Medium.ttf', weight: 500 },\n  { url: 'NotoSans-MediumItalic.ttf', weight: 500, italic: true },\n  { url: 'NotoSans-SemiBold.ttf', weight: 600 },\n  { url: 'NotoSans-SemiBoldItalic.ttf', weight: 600, italic: true },\n  { url: 'NotoSans-Bold.ttf', weight: 700 },\n  { url: 'NotoSans-BoldItalic.ttf', weight: 700, italic: true },\n  { url: 'NotoSans-ExtraBold.ttf', weight: 800 },\n  { url: 'NotoSans-ExtraBoldItalic.ttf', weight: 800, italic: true },\n  { url: 'NotoSans-Black.ttf', weight: 900 },\n  { url: 'NotoSans-BlackItalic.ttf', weight: 900, italic: true },\n];\n\nconst fontFallback = {\n  fonts: {\n    [FontCharset.CYRILLIC]: latinFonts,\n    [FontCharset.GREEK]: latinFonts,\n    [FontCharset.VIETNAMESE]: latinFonts,\n  },\n  baseUrl: 'https://cdn.jsdelivr.net/npm/@embedpdf/fonts-latin@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 is a trademark of Google LLC.\n","readmeFilename":"README.md","_rev":"1-f17fa19ab5986111ab1ee0a1c81afe03"}