S
S
Sergey Burduzha2019-03-01 11:17:16
css
Sergey Burduzha, 2019-03-01 11:17:16

Is it possible to include a fallback font in font-face as well?

Good afternoon.
As I have done so far.
I connected a third-party font through font-face, and then inserted it into + fallback and sans-serif styles.
Is it possible to immediately register a second font in font-face?

@font-face
  font-family 'PTSans', 'Arial', sans-serif
  src: url('../fonts/BebasNeueRegular.woff2') format('woff2'),
        url('../fonts/BebasNeueRegular.woff') format('woff')
  font-weight normal
  font-style normal
  font-display swap

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2019-03-01
@serii81

Never tried it, but I think that's what will happen. You will kill the connection of 2 fonts and the whole family, since Arial and sans-serif will start to refer to src:.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question