{"_id":"@affectionatedoor/source-serif-subsets","_rev":"1-067cfd973f633a9d297a510a5472093f","name":"@affectionatedoor/source-serif-subsets","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@affectionatedoor/source-serif-subsets","version":"1.0.0","description":"Unicode subsets for the Source Serif Pro typeface","main":"index.css","repository":{"type":"git","url":"git://github.com/MarkosKon/theme-playground.git","directory":"packages/unicode-subsets/source-serif-subsets"},"bugs":{"url":"https://github.com/MarkosKon/theme-playground/issues"},"homepage":"https://github.com/MarkosKon/theme-playground#readme","_id":"@affectionatedoor/source-serif-subsets@1.0.0","_nodeVersion":"12.16.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Y8FLyAknUkauQbGQ0JSv+RwXD5SU7UKOLu7edu9BqmOgXGm1foIMZb67lV+SNdAJgW9QYK3mBaA0Y07EhzVLfA==","shasum":"4cdd30a409482d76c6ab2f260b7f77a27cc766d4","tarball":"https://registry.npmjs.org/@affectionatedoor/source-serif-subsets/-/source-serif-subsets-1.0.0.tgz","fileCount":106,"unpackedSize":4269950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVntrCRA9TVsSAnZWagAARHsP/0q/HPy1vuPqjQPEOxdN\nEoOBTO0YoKdiDN3Pc0C1YGsM2PrMc+3bDJkYByfqc7XGZojhoipkMKGLovmf\nr7rxCGdiydl5j++fFzbCDfJpHTtsCRMJXaxCVPQF7qJwdRpp3kyP61zhiq0P\nW+vui6BOdeG8x3xPJeoZYKVfHU24oTsBNw+06Fi2dawyBGbwoytKimNPVMZF\nI0T0WZPiQFnVtWEV+m+d1S9pIx0ZDfL1xzBK+ESC23upgrc8LOIcoPjfnQEH\n6U6YcvHQQ0/B+ZPsqX3vwJtY2x8hqn4hXpP3bFpDUEr38Eqm7eaAXTNyl0hm\nrDYPG4Qo+GxZqVtmC422JT/jMmkZPl5TlGl3sBBPXOt0KIl6Ei55o4r7Zrty\nryRXEKXZwwRfcHQCrCgIbFxeZ+q6U/cZU1+jcNtc9bmnkX5+mEJ+S9zSoIs5\nVqQY2Iu/M4MOFpIcafs99nVqXGs8RP5RdF4D7S3WFb7jX9Zmp1o4L2PrgtYv\nryDk+EOmtb7hKc6fX/Uxhu/rNUhNXIWHXmOl1BHxtPCa73G5okHaWoXV+J1u\nYeiVkFtBrd5Vioi2FQlqcdu6hkdAJlO3nwTF5nAodbFQqI9vr/qQiue8LDua\nkjhGafaNNJaXWd2jPU1yVkfakcr1HJrIEnlZwSG47hLFJL/sHY2SqgdvALxD\n4b3P\r\n=K+or\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2crceKkUTfkKUNfwESAxCfbLWO3miSO30fBz4LGpiJQIgdTR1ybI/l0rYH7zVNgdzryB7FnrgdgjR8fZYB1knlys="}]},"maintainers":[{"name":"affectionatedoor","email":"rtctt4aou@gmail.com"}],"_npmUser":{"name":"affectionatedoor","email":"rtctt4aou@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-serif-subsets_1.0.0_1582725995338_0.6618543363668337"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-26T14:06:35.306Z","1.0.0":"2020-02-26T14:06:35.533Z","modified":"2022-04-04T11:50:28.249Z"},"maintainers":[{"name":"affectionatedoor","email":"rtctt4aou@gmail.com"}],"description":"Unicode subsets for the Source Serif Pro typeface","homepage":"https://github.com/MarkosKon/theme-playground#readme","repository":{"type":"git","url":"git://github.com/MarkosKon/theme-playground.git","directory":"packages/unicode-subsets/source-serif-subsets"},"bugs":{"url":"https://github.com/MarkosKon/theme-playground/issues"},"readme":"# Source Serif Pro subsets\n\nUnicode subsets for the Source Serif Pro typeface.\n\n## Install\n\n```bash\nyarn add @affectionatedoor/source-serif-subsets\n```\n\nImport the CSS file (you need loaders for the CSS and font files):\n\n```js\nimport \"@affectionatedoor/source-serif-subsets\";\n// or if you want to use the variable fonts:\nimport \"@affectionatedoor/source-serif-subsets/variable.css\";\n```\n\nUse the font files in CSS:\n\n```css\nhtml {\n  font-family: \"Source Serif Pro\", serif;\n}\n/* or if you want to use the variable fonts:  */\nhtml {\n  font-family: \"Source Serif Variable\", serif;\n}\n```\n\n## Subsets\n\n- Latin: U+0000-00FF.\n- Latin Extended-A: U+0100-017F.\n- Greek: U+0370-03FF.\n- Cyrillic: U+0400-04FF.\n- Latin Extended-Additional: U+1E00-1EFF.\n- Rest middle: U+0180-036F, U+1D00-1DBF.\n- Rest: U+2000-1F916.\n\n**Note:** In IE9-11, `unicode-range` subsets don't work as expected, because the browser [downloads all the available font files](https://caniuse.com/#feat=font-unicode-range).\n\n## Weights\n\nSubsets are available for Regular, Italic, Bold, and BoldItalic. I may add more in the future. The variable font files have all the weights.\n\n## Usage with Gatsby\n\n```bash\n// gatsby-browser.js\nimport @affectionatedoor/source-serif-subsets\n```\n\n**Important:** Many of the subset files are small, and, as a result, Gatsby will try to inline them as base64 strings in the CSS. This will result into a _huge CSS file_. To go around that, you'll have to [change the inline limit](https://github.com/KyleAMathews/typefaces/issues/104) for Webpack:\n\n```js\n// gatsby-node.js\nexports.onCreateWebpackConfig = ({ actions, getConfig }) => {\n  const config = getConfig();\n  const fontRule = config.module.rules.find(rule =>\n    String(rule.test).includes(\"woff\")\n  );\n  // Set a very small limit of 3KB.\n  fontRule.use[0].options.limit = 3000;\n  actions.replaceWebpackConfig(config);\n};\n```\n\nSee the link above for more details.\n","readmeFilename":"README.md"}