log1x/laravel-webfonts
Self-host Google Fonts in Laravel with a simple artisan command. laravel-webfonts downloads the font files you need, generates local CSS, and gives you a Blade component for fast, privacy-friendly typography without third-party requests.
log1x/laravel-webfonts operates at the build/deploy boundary rather than in the request path: it fetches webfont assets, stores them locally, and generates CSS for self-hosting. That makes it a good fit for Laravel applications that want to remove third-party Google Fonts requests for privacy/GDPR, latency, and caching reasons. The v2.0.1 enhancement—allowing specific fonts to be preloaded—is a configuration/output-layer change affecting generated <link rel="preload"> markup and CSS inclusion. Architectural surface area is small.font-display, unicode-range subsetting, or Vite/asset hashing?public/ or a CDN. The generation step must be sequenced before the frontend asset build if generated CSS is imported into the main bundle.<link> tags with local CSS, then selectively enable preload for critical fonts only. For existing v2.0.0 users, v2.0.1 is an additive patch: bump the Composer constraint and adopt the new preload allowlist only where a performance need exists.font-src, style-src) and CORS headers for self-hosted font files.font-display causing invisible text during load; CSP or CORS blocking self-hosted fonts; font license non-compliance; environment drift when generated assets are not reproducible in CI.How can I help you explore Laravel packages today?