Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am currently learning Google fonts api, and the current version as far as I know is version 2.

Applying font apis goes well but when I apply ready to use font effects it fails.

Here is the code that doesn't work.
@import url('https://fonts.googleapis.com/css2?family=Sofia&effect=fire');


And when I switch the api version from css2 to css then it works.
@import url('https://fonts.googleapis.com/css?family=Sofia&effect=fire');

I am using Chrome.

So the question is, does Google fonts api v2 support ready to use font effects? Or there is another way to get it done in v2.

Thanks in advanced for the help.

What I have tried:

Font effects working in earlier version.
Font effects not working in version 2.
I read follwoing two offical links
CSS API update

Get Started with the Google Fonts API
Posted
Updated 26-May-21 22:13pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900