{"schemaVersion":1,"id":"fontsource","name":"Fontsource","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/fontsource/","officialUrl":"https://fontsource.org/","isCatalog":false,"description":"Open font packages for self-hosting: connect families, weights/styles, and variable fonts through npm instead of an external CDN.","tasks":["Self-hosting a website font","Loading only the required styles and subsets"],"categoryIds":["assets"],"subcategoryIds":["assets.fonts"],"tags":["npm","CSS","WOFF2","fonts"],"aliases":["fontsource/fontsource"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"npm packages and self-hosting of the available open fonts are free; retain the chosen family’s LICENSE.","paidUsage":"Fontsource integration requires no mandatory subscription. Paid third-party fonts cannot automatically be treated as part of the collection; check rights for the specific file.","license":"MIT for Fontsource code; fonts retain their individual family licenses. Check the LICENSE of the specific npm package: the tool’s general license does not replace font rights.","selectionGuide":{"purpose":"Self-hosting a website font","chooseWhen":["Self-hosting a website font","Loading only the required styles and subsets"],"considerInstead":[],"requirements":["Use a bundler supporting CSS imports, such as Vite or Webpack; the package and import must match the selected family."],"limitations":["Costs and limits of free use: Fontsource integration requires no mandatory subscription. Paid third-party fonts cannot automatically be treated as part of the collection; check rights for the specific file.","Terms of use: MIT for Fontsource code; fonts retain their individual family licenses. Check the LICENSE of the specific npm package: the tool’s general license does not replace font rights.","A normal import does not include italic automatically. Check the selected font's license separately from the Fontsource tool license."],"faq":[{"question":"What can you use for free in Fontsource?","answer":"npm packages and self-hosting of the available open fonts are free; retain the chosen family’s LICENSE."},{"question":"What additional costs might arise with Fontsource?","answer":"Fontsource integration requires no mandatory subscription. Paid third-party fonts cannot automatically be treated as part of the collection; check rights for the specific file."},{"question":"What terms of use matter for Fontsource?","answer":"MIT for Fontsource code; fonts retain their individual family licenses. Check the LICENSE of the specific npm package: the tool’s general license does not replace font rights."},{"question":"How do you get started with Fontsource?","answer":"Install the chosen family's package, check its LICENSE and supported subsets/variable axes. Import only the required styles/subsets and apply font-family with a suitable fallback. Check WOFF2 loading from your own domain, Cyrillic display, and the absence of text shifts."},{"question":"How do I reduce font file count and add the required styles through Fontsource?","answer":"A variable package applies to a variable-font family and supports a weight range rather than separate weight files. In a static package, an ordinary root import usually loads normal 400; additional weights and italic are imported separately. Unicode-range lets the browser load the required character sets. After importing, set font-family in CSS."}],"related":[],"sources":["https://fontsource.org/","https://github.com/fontsource/fontsource","https://github.com/fontsource/fontsource/blob/main/README.md","https://github.com/fontsource/fontsource/blob/main/LICENSE","https://fontsource.org/docs/getting-started/introduction","https://fontsource.org/docs/getting-started/install"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Add an open font through npm and host the files on your own website.","inputs":["The selected Fontsource family, styles, languages, and specific package license.","A project with npm/build tooling and font-display/fallback settings."],"steps":["Install the chosen family's package, check its LICENSE and supported subsets/variable axes.","Import only the required styles/subsets and apply font-family with a suitable fallback.","Check WOFF2 loading from your own domain, Cyrillic display, and the absence of text shifts."],"checks":["All required characters/styles are available; the package license is retained.","Files are not fetched from an unnecessary external CDN; the chosen font payload is appropriate."]},"sources":["https://fontsource.org/","https://github.com/fontsource/fontsource","https://github.com/fontsource/fontsource/blob/main/README.md","https://github.com/fontsource/fontsource/blob/main/LICENSE","https://fontsource.org/docs/getting-started/introduction","https://fontsource.org/docs/getting-started/install"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Graphics collection","kind":"library","pricingNote":"npm packages and self-hosting of the available open fonts are free; retain the chosen family’s LICENSE. Fontsource integration requires no mandatory subscription. Paid third-party fonts cannot automatically be treated as part of the collection; check rights for the specific file.","notes":null,"labeledSources":[{"url":"https://fontsource.org/","label":"Official website"},{"url":"https://github.com/fontsource/fontsource","label":"Source code"},{"url":"https://github.com/fontsource/fontsource/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/fontsource/fontsource/blob/main/LICENSE","label":"License"},{"url":"https://fontsource.org/docs/getting-started/introduction","label":"Self-hosting and font licenses"},{"url":"https://fontsource.org/docs/getting-started/install","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"},{"id":"resource-specific","title":"Each asset has its own rights","scope":null,"summary":"A catalog or gallery does not grant one license for all its content. Check code, fonts, images, models, and templates under the specific resource's license. Studying an idea and creating your own implementation is a different use case from copying source code or assets.","url":null}],"entryIds":[],"composition":null}