coollabsio/fonts
关于
注重隐私、可直接替代 Google Fonts 的方案
安全与隐私实测星标增长
- 24小时
- +1
- 7天
- 0
- 15天
- +4
- 1个月
- +12
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文A privacy-friendly drop-in replacement for Google Fonts
I wrote it in an hour, so please report bugs here. Several improvements could be made here and there, so do not hesitate to contact me. if you have any suggestions.
Why?
There have been several GDPR issues popping up lately with Google & Google CDN. We don't know what they are doing with user details, such as IP address, browser agent, etc.
So I decided to create a similar service just without logging ANYTHING.
How to use?
Fonts
Change the domain name from fonts.googleapis.com to api.fonts.coollabs.io in your <head> tag; that's it!
Example:
Original <head> content:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet" />
Replaced <head> content:
<link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin />
<link href="https://api.fonts.coollabs.io/css2?family=Roboto&display=swap" rel="stylesheet" />
Or with @import:
From:
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
</style>
To:
<style>
@import url('https://api.fonts.coollabs.io/css2?family=Roboto&display=swap');
</style>
Supports css2 API endpoint and css API endpoint as well.
Icons
Currently, Material Icons is supported.
Original <head> content:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
Replaced <head> content:
<link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin />
<link href="https://api.fonts.coollabs.io/icon?family=Material+Icons" rel="stylesheet" />
Stack
探索相关项目
加载中…