Friday, 15 April 2011

css - font-face not working in django -



css - font-face not working in django -

in django (local test project) have style.css file in static folder works perfect , style applies template. static folder contain image folder , fonts folder. content of image folder appear in browser fonts not!!! here font-face code:

font-family: '‌‌‌bmitra'; src: url('fonts/bmitra.eot?#') format('eot'), url('fonts/bmitra.ttf') format('truetype'), url('fonts/bmitra.woff') format('woff');

i check css firebug , find personal font disable , browser uses tahoma instead:

direction: rtl; color: #092e20; font-size: 24px; font-family: bmitra, tahoma, arial; text-align: right;

how utilize font-face in django?

as have mentioned directory construction is:

static css/my_css_file.css fonts

then in my_css_file.css file need step 1 folder access fonts:

url('../fonts/bmitra.ttf')

css django

No comments:

Post a Comment