V
V
Vasily Vasilyev2018-01-27 21:05:17
css
Vasily Vasilyev, 2018-01-27 21:05:17

What does @font-face{ src: local(...?

There is the following font:

@font-face {
   font-family: "Alice";
   font-style: normal;
   font-weight: 400;
   src: local("Alice"), local("Alice-Regular"),
        url("http://fonts.gstatic.com/s/alice/v7/sZyKh5NKrCk1xkCk_F1S8A.eot?#") format("eot"),
        url("http://fonts.gstatic.com/s/alice/v7/l5RFQT5MQiajQkFxjDLySg.woff2") format("woff2"),
        url("http://fonts.gstatic.com/s/alice/v7/_H4kMcdhHr0B8RDaQcqpTA.woff")  format("woff"),
        url("http://fonts.gstatic.com/s/alice/v7/acf9XsUhgp1k2j79ATk2cw.ttf")   format("truetype")
}

What does it mean in this context src: local(...? Font preinstalled in the user's hardware?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-01-27
@Basil_Dev

Well, yes. https://developer.mozilla.org/ru/docs/Web/CSS/@fon...
if it's not available locally, url works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question