Answer the question
In order to leave comments, you need to log in
How to load font by js action?
Hello. Please advise on the implementation. I have a modal window with a different font than the website. How to load font by function popupOpen ?
Answer the question
In order to leave comments, you need to log in
Maybe you shouldn't download the font.
It's much easier to change the css
let el_summ = document.querySelector('#summ')
//add a property to the element
el_summ.style.fontFamily="Your font"
el_summ.classList.add('newClass')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question