![]() * * Prepend all files that are written to the selected disk with this path. The public disk * is the default because it can be served over HTTP with storage:link. * * This disk will be used to store local Adobe Fonts. * The adobe-fonts:fetch command will prefetch these fonts. * * Here you can register fonts to call from the Blade directive. ![]() You can install the package via composer: We needed this for Adobe Fonts, so use the Google Fonts package as a starter. CreditsĬredits to Spatie for the Laravel Google Fonts package. This package makes self-hosting Adobe Fonts as frictionless as possible for Laravel users. Keeping up with the latest font version can also be a chore. ![]() You can download fonts from Adobe Fonts and self-host them, but it's more work than embedding a code. ![]() In addition, you're directing your visitors to Adobe property, which privacy-minded users might not appreciate. By hosting fonts on an external domain, browsers need to perform an additional DNS lookup. Why we created this packageĪdobe Fonts hosts an impressive catalog of fonts, but relying on it has its costs. If anything goes wrong in this process, the package falls back to a tag to load the fonts from Adobe. When fonts are requested the first time, this package will scrape the CSS, fetch the assets from Adobe's servers, store them locally, and render the CSS inline.
0 Comments
Leave a Reply. |