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

Alternative for FontAwesome and Google fonts? #313

Open
soxofaan opened this issue Sep 18, 2023 · 6 comments
Open

Alternative for FontAwesome and Google fonts? #313

soxofaan opened this issue Sep 18, 2023 · 6 comments
Labels
help wanted Extra attention is needed Platform

Comments

@soxofaan
Copy link
Member

soxofaan commented Sep 18, 2023

I noticed this accidentally when web editor seemed stuck/slow on some google fonts request: apparently webeditor depends on FontAwesome and consequently on Google Fonts.

<link rel="preload" as="font" type="font/woff2" crossorigin href="https://use.fontawesome.com/releases/v5.13.0/webfonts/fa-solid-900.woff2"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css" type="text/css" media="all" />

Assuming we're in the free FontAwesome plan: there is apparently a limit to 10.000 page views per month in that plan. We're probably still far below that, but it's not very high threshold either (333 views per day).

Also, as far as I understand, usage of Google Fonts is bit problematic regarding GDPR and tracking, so we might want to avoid that, especially for usage in projects involving ESA/EC.

@soxofaan
Copy link
Member Author

(FYI, regarding problematic Google Fonts usage, there is this EU-based drop-in replacement https://fonts.bunny.net/about )

@m-mohr
Copy link
Member

m-mohr commented Sep 20, 2023

I wasn't aware that FA uses Google Fonts. Do we have a good alternative for FA? I'm not sure how I can use Bunny Fonts with FA yet...

@soxofaan
Copy link
Member Author

A possible solution is including the static assets in the deployment, instead of loading them from external sources and CDNs to avoid HTTP requests and related cookies to these services . However I'm not sure if that comes with legal implications

@m-mohr
Copy link
Member

m-mohr commented Sep 25, 2023

@soxofaan Could you clarify why/how FA is using Google Fonts? I don't see that being in the CSS.

The license of FA5 Free seems to be CC/SIL so I think we could just add them to this repo and ship/bundle/host them ourself. We should use the Web Fonts due to the Vue Components, which also use some of the icons if available.

PRs are welcome, I have no Web Editor funding right now.

@m-mohr m-mohr added help wanted Extra attention is needed Platform labels Sep 25, 2023
@soxofaan
Copy link
Member Author

Not sure. I'm not that familiar with how the app is packaged, but I currently see @import url(https://fonts.googleapis.com/css?family=Ubuntu&display=swap) in https://editor.openeo.org/css/app.12bf10b8.css does that help? (I might be wrong that this is triggered from or related to FA maybe)

@m-mohr
Copy link
Member

m-mohr commented Sep 26, 2023

I suspect the Ubuntu font comes from a different dependency, maybe Snotify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Platform
Projects
None yet
Development

No branches or pull requests

2 participants