Include font in theme

Created on 6 December 2018, about 6 years ago
Updated 19 September 2024, 3 months ago

drupal.org is using Google as a third party service provider of fonts, which is in breach of EU's General Data Protection Regulation ("GDPR").

In light of the ruling in January 2022 as described in Website fined by German court for leaking visitor's IP address via Google Fonts, the font should be embedded in the theme in stead.

From one of the CSS files:
@import url(https://fonts.googleapis.com/css?family=Ubuntu:700,400,300);html ...

Pros:

  • Not relying on the Google CDN
  • Avoid potentially slow load times
  • More privacy-friendly

Cons:

  • A little extra work coding it

The font package can be created with https://google-webfonts-helper.herokuapp.com. Here is a download link to variants 300, 400 and 700 for modern browsers:

https://google-webfonts-helper.herokuapp.com/api/fonts/ubuntu?download=z...

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡°Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024