Posts Tagged ‘font-face’


Custom @Font-Face in CSS3

In CSS3 on November 24, 2011 by patrellery Tagged:

Here’s a quick tip on how to display fonts in your page:

Download the font:

And use this code in your CSS file:

@font-face {
font-family: 'HattoriHanzoLight';
src: url('hattori_hanzo.otf') format('opentype');
font-weight: normal;
font-style: normal;

Then in your HTML:

some content!