javierms / native_fontawesome
Font Awesome 6 Free webfonts hosted 100% locally with high-priority CSS aggregation and zero external CDN requests.
Package info
github.com/Javier-Macia/native_fontawesome
Type:drupal-module
pkg:composer/javierms/native_fontawesome
1.0.0
2026-09-29 13:05 UTC
Requires
- drupal/core: ^10 || ^11 || ^12
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A lightweight Drupal module that serves Font Awesome 6 Free webfonts (Solid, Regular, Brands) 100% locally from your own web server with zero external CDN dependencies.
Features
- 100% Self-Hosted: No requests made to
cdnjs.cloudflare.comoruse.fontawesome.com. Fully compliant with GDPR / European privacy regulations. - High-Priority Loading: Configured in
base:CSS layer with negative weight (weight: -100) so that icon stylesheets are prioritized during aggregation. - Includes Font Awesome 6.5.1 Free: Contains
.woff2files for Solid, Regular, and Brands.
Requirements
- Drupal 10, 11 or 12.
Installation
Using Composer:
composer require javierms/native_fontawesome drush en native_fontawesome -y
Usage
In your custom theme or module *.libraries.yml:
my_library: dependencies: - native_fontawesome/fontawesome
In your Twig templates or HTML:
<i class="fa-solid fa-gear"></i> <i class="fa-brands fa-github"></i>
License
- Module code: GNU General Public License v2.0 or later (GPL-2.0-or-later).
- Font Awesome webfonts: SIL Open Font License 1.1 (Fonticons, Inc.).
- Font Awesome CSS: MIT License (Fonticons, Inc.).