Hey , how do i implement a font that the client has provided , such as a custom "DIN Schrift" font, firstly do i use font face? and secondly, how do i implement the font , it doesnt appear right, as the font family is DIN Schrift, but the font weight instead of having bold , normal, italic etc, it has "1451 Engshrift" , so how do i get 1451 Engshrift to be its style in CSS?
So first download the font and call in css like this @font-face { font-family: 'ZapfinoLinotypeOneRegular'; src: url('fonts/zapfino-linotype-one-webfont.eot'); src: url('fonts/zapfino-linotype-one-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/zapfino-linotype-one-webfont.woff') format('woff'), url('fonts/zapfino-linotype-one-webfont.ttf') format('truetype'), url('fonts/zapfino-linotype-one-webfont.svg#ZapfinoLinotypeOneRegular') format('svg'); font-weight: normal; font-style: normal; }
You are welcome. This week I'm gonna testing @font-face whether is safe in all browsers. Regards, Jordan!
All modern browsers will use at least one of the formats (TTF, EOT, WOFF or SVG), while IE has had support back to version 5 over a decade ago). Getting the font into all those formats can be done online using this site: http://www.fontsquirrel.com/fontface/generator/ Which also provides working code. Due to the size of font files, they should be used with an eye-dropper. A lot of fonts are also just not suitable for 'flow' text which is why if someone wants to use a custom font across the entire page, I try to talk them out of it... quite often they just render like arse since a great many fonts are designed for print, not screen.
google also provides some custom web fonts. Try searching 'google web fonts'. easiest way to use and hundreds of fonts for free
The first time I noticed this is when I downloaded the css from overstock.com After formatting it turned out to be 70 pages long! They have a lot of font downloads some of which have custom names like ovrstc.ttf. Of course this might be off-the-shelf fonts that are renamed to make it easier to switch them. wiz