Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDPR concerns with Google Fonts #202

Open
LukeMoll opened this issue Jan 30, 2022 · 2 comments
Open

GDPR concerns with Google Fonts #202

LukeMoll opened this issue Jan 30, 2022 · 2 comments
Labels
frontend Relating to the HTML, CSS, and JS which runs in the user's browser

Comments

@LukeMoll
Copy link
Member

LukeMoll commented Jan 30, 2022

Using the Google Fonts API1 seems to log IP addresses of visitors to sites using it23. Using Google Fonts in this way does not fall under Legitimate Interest4.

Without LI, and without a good mechanism for visitors to opt-in before fonts are fetched, the logical course to comply with GDPR would be to remove use of the Fonts API. While the likelihood of HackSoc facing any legal action through GDPR is slim to none, complying is often in the interest of our visitors' privacy.

The Google Fonts service also offers downloads of fonts for developers to host on their own servers; hosting fonts in this way would remove any data privacy concerns.

Moving from Google's infrastructure to our own does come with risks: without a powerful CDN, and since fonts could only be cached by visits to HackSoc sites4 (and not by other sites using the same Google Fonts), site load times could increase. When implementing this move, care should be given to performance on slow connections, and different font-loading behaviours (ie using a local font rather than not displaying text until the font has loaded).

Additionally, if the downloaded fonts are added to the repository (as is the case with one font already), we should make sure this is compliant with their licenses, and put the licences alongside the font files in the repo.

Footnotes

  1. https://developers.google.com/fonts/docs/getting_started

  2. https://github.com/google/fonts/issues/1495

  3. https://www.brycewray.com/posts/2020/08/google-fonts-privacy/#issue-%231495

  4. https://twitter.com/FascinatingTech/status/1487342734906171393?t=JI18f01KhUNw4OJDooY5fA&s=19 2

@LukeMoll LukeMoll added the frontend Relating to the HTML, CSS, and JS which runs in the user's browser label Jan 30, 2022
@LukeMoll
Copy link
Member Author

LukeMoll commented Feb 7, 2022

The server pages also use Google Fonts, and so if fonts are re-hosted, CORS headers will need to be set to prevent #181 from being exacerbated.

@LukeMoll
Copy link
Member Author

LukeMoll commented Apr 8, 2023

BunnyCDN offers BunnyFonts as a free, drop-in Google Fonts replacement with an emphasis on GDPR compliance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Relating to the HTML, CSS, and JS which runs in the user's browser
Projects
None yet
Development

No branches or pull requests

1 participant