V
V
Vladimir Novitsky2020-10-19 23:33:04
css
Vladimir Novitsky, 2020-10-19 23:33:04

Is there a bug in Google Fonts or am I misunderstanding something?

Hello.
Google Fonts in CSS API v2 began to generate links for connecting fonts in a new way.
For example, it used to be like this:

@import url('https://fonts.googleapis.com/css?family=Arsenal:400,400i,700,700i&display=swap&subset=cyrillic-ext,latin-ext');

And now like this:
@import url('https://fonts.googleapis.com/css2?family=Arsenal:ital,[email protected],400;0,700;1,400;1,700&display=swap');

The last one doesn't work. The error seems to be at the semicolon after the first number 400;, it closes the line ahead of time. But I don't know how to fix it and what to replace it with.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Glebov, 2020-10-19
@SkiperX

Escaping with a backslash or
@import url(#{"string"});

V
Vladimir Novitsky, 2020-10-21
@Novitsky

Thanks everyone. It turned out that the problem is not in Google, but in the editor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question