Page 1 of 1

how to implement google fonts

Posted: Tue May 08, 2018 11:23 pm
by SteveLacy

I see there are some other posts on how to implement Google fonts, but they are several years old and I believe Google has updated their process for using Google fonts.

Google's current instructions specify to include their style sheet:

before specifying the font in your CSS.

I have tried the following where I created a new CSS class in Appery with the following:

@import url(//fonts.googleapis.com/css?family=Josefin+Sans);

.google_menu {
font-family: 'Josefin Sans', sans-serif;
color: blue;
}

I then add the "google_menu" class to the mobilelist_29 item I want to use that google font.

It's not working. The other posts seem to refer to an obsolete method for implementing Google fonts. Any help is appreciated.

Thanks!


how to implement google fonts

Posted: Thu May 10, 2018 2:21 pm
by Serhii Kulibaba

Hello Steve,

It works fine.

You just need to replace all URLs from that CSS file:
from "http" to "https"


how to implement google fonts

Posted: Thu May 10, 2018 10:36 pm
by SteveLacy

Awesome! It works! Thanks!