M
M
mydarck2016-01-22 09:37:21
css
mydarck, 2016-01-22 09:37:21

What is the surest way to include fonts on a website?

There is a need to connect non-standard fonts to the site. I think to take them from google font's. But even there there are several connection options. Which is better to choose? And can fonts generally be downloaded and connected locally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serj-One, 2016-01-22
@mydarck

Locally
www.fontsquirrel.com/tools/webfont-generator

@font-face {
    font-family: 'Play';
    src: url('../fonts/play-regular-webfont.eot');
    src: url('../fonts/play-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/play-regular-webfont.woff2') format('woff2'),
         url('../fonts/play-regular-webfont.woff') format('woff'),
         url('../fonts/play-regular-webfont.ttf') format('truetype'),
         url('../fonts/play-regular-webfont.svg#playregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question