Local Connection Of Fonts - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Local Connection Of Fonts

Dmitry Goncharov

Dmitry Goncharov

Helix Framework 3 years ago

Hello. What font extensions do I need to connect to the template? woff2 ? woff ? truetype ?

Or is one enough ttf?

@font-face { font-family: 'alex_brushregular'; src: url('../fonts/alexbrush-regular-webfont.woff2') format('woff2'), url('../fonts/alexbrush-regular-webfont.woff') format('woff'), url('../fonts/alexbrush-regular-webfont.ttf') format('truetype'); font-weight: normal; font-style: normal; }

0
2 Answers
Pavel
Pavel
Accepted Answer
3 years ago #90859

Hi.

woff2 and woff enough for all modern browsers on any devices.

If you want to support outdated browsers, connect additional fonts.

Here is example of my main set

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    src: url(/templates/shaper_helixultimate/fonts/oswald-v49-latin_cyrillic-700.woff2) format('woff2'),
        url(/templates/shaper_helixultimate/fonts/oswald-v49-latin_cyrillic-700.woff) format('woff');
    font-display: swap;
}
0
Anne
Anne
Accepted Answer
Support Agent 3 years ago #90927

Hello there,

Thanks for contacting us. Please follow Pavel's instructions . Thanks for sharing the info @Pavel.

-Regards

0