Fonts.googleapis.com make offline for offline builds?

Trying out a dist offline on a raspberry pi for an offline project and I get these errors below, any way to make the google fonts cached offline? Also an error about Needle analytics :confused:

Failed to load resource: net::ERR_NAME_NOT_RESOLVED

then

GET https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap net::ERR_NAME_NOT_RESOLVED

then

GET https://needle-engine-analytics-v2-r26roub2hq-lz.a.run.app/api/v2/new/request?license=pro&url=http%3A%2F%2Flocalhost%3A5500%2Findex.html&hostname=localhost&pathname=%2Findex.html&search=&hash=&version=3.28.3-beta&generator=Unity%202023.1.19f1,%20Needle%20Engine%20Integration%20@3.28.3-pre net::ERR_NAME_NOT_RESOLVED

Original Post on Discord

by user 103054507105067008

Hello there – we have an experimental AI bot :robot: that might be able to help you with your question. Would you like to try this out?

Download them from Google fonts and embed them into your web project

You could also add it to some PWA precache but I think just downloading in advance is easier

Add it might be from our font, that’s right - not an issue tho for runtime usage, just a cosmetic error Iβ€˜d say and we can catch the error(s) better

Cool, in my style.css I went to here to download font family, extracted the font I needed and added to Include folder under a new subfolder called fonts.
https://fonts.google.com/specimen/Roboto
Then in the css I changed
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");
to
@font-face { font-family: "Roboto"; src: url("./include/fonts/Roboto-Regular.ttf"); }

by user 103054507105067008

That got rid of font errors, now the last error is the same as before for https://needle-engine-analytics-v2-r26roub2hq-lz.a.run.app/api/v2/new/request?license=pro&url=http%3A%2F%2Flocalhost%3A5500%2Findex.html&hostname=localhost&pathname=%2Findex.html&search=&hash=&version=3.28.3-beta&generator=Unity%202023.1.19f1,%20Needle%20Engine%20Integration%20@3.28.3-pre

by user 103054507105067008

Thanks - shouldn’t affect functionality though!