djangoproject.com icon indicating copy to clipboard operation
djangoproject.com copied to clipboard

Remove Google Fonts

Open stefins opened this issue 4 years ago • 14 comments

Would you be willing to remove this Google Fonts from this website? There are better alternatives available Some reputable alternatives can be seen here: https://switching.software/replace/google-fonts/

stefins avatar Jun 05 '20 09:06 stefins

i second this

TheEvilSkeleton avatar Jun 05 '20 16:06 TheEvilSkeleton

I third this.

resynth1943 avatar Jun 05 '20 21:06 resynth1943

I fourth this

ghost avatar Jun 05 '20 21:06 ghost

Google fonts API is actually nice.

arthtyagi avatar Aug 13 '20 19:08 arthtyagi

Sure, it's nice, but it's always better to self-host fonts, instead of injecting code from a third party.

resynth1943 avatar Aug 13 '20 21:08 resynth1943

I pretty sure you can just download this font directly from google fonts.

xavierlesa avatar Aug 23 '20 00:08 xavierlesa

A PR here would be very welcome.

carltongibson avatar Aug 23 '20 09:08 carltongibson

On it.

resynth1943 avatar Aug 23 '20 11:08 resynth1943

#1019 😉

resynth1943 avatar Aug 24 '20 00:08 resynth1943

I'm planning to have a look at this and switch to a system font stack like we did on the Django admin - at least for the sans-serif text currently using Roboto. For other text I am not yet sure. There is a serif font used in places and ui-serif has very little support. Same for ui-monospace.

knyghty avatar Sep 26 '22 10:09 knyghty

Well, okay, I had a quick look at system fonts but for some areas it looks bad. See screens. I am not sure about the nav bar, I think it's maybe an improvement but much longer using my system font (presumably SF Pro), but the big banner text "Django makes it easier ..." looks really bad. Probably we should choose a different font for headers, ideally something that is installed on (most) people's machines already but maybe something that we just use as a web font (could use a downloaded Roboto, but seems annoying just for headers).

Or maybe people think it looks fine, I dunno.

Before: Screenshot 2022-10-09 at 11 51 29

After: Screenshot 2022-10-09 at 11 51 40

knyghty avatar Oct 09 '22 09:10 knyghty

The screenshot without Google Fonts looks fine for me.

For my blog I used PicoCss which is ultralight and does not use external fonts.

Here is an extract from its CSS in case it may be of interest.

  --font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu",
    "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";

https://github.com/picocss/pico/blob/master/css/pico.classless.css#L10

pauloxnet avatar Oct 09 '22 10:10 pauloxnet

Okay, if you're happy with it I'll press on 👍🏻

knyghty avatar Oct 09 '22 11:10 knyghty

This isn't completed, at least the monospace font is still coming from Google Fonts

knyghty avatar Oct 13 '22 11:10 knyghty

The issue closed automatically. I reopened it.

pauloxnet avatar Oct 13 '22 12:10 pauloxnet