html - Using non-standard font in web pages? -


i have been told create website using non standard font. client has supplied font file (in .otf format). there way can have text on webpage show in specified font (non-web standard) ?

is there other alternative other using sifr ?

edit : how apply @font-face particular div ?

you can use css @font-face declaration this.

however, beware: not browsers support otf format.
can use tool such fontsquirrel's font-face generator convert font different formats you'll need. it'll generate css you, you'll copy , paste project.


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -