Search by

javierms / native_fontawesome

JavierMS

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

Statistics

Installs: 1

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

1.0.0 2026-09-29 13:05 UTC

This package is auto-updated.

Last update: 2026-10-19 19:41:35 UTC


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.com or use.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 .woff2 files 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.).