Mohsen
Mohsen

Reputation: 256

How to use @font-face from fonts that added to my project?

I have a font file in font directory of my project and use it to css file,in my system working true but not working in the client system.how to use it that correct result ?

my font-face in css is :

@font-face {
    font-family: 'Yekan';
    src: url('font/Yekan.eot');
    src: url('Font/Yekan.woff');
    src: url('Font/Yekan.eot?#iefix') format('embedded-opentype'), url('font/Yekan.ttf'),  url('font/Yekan.svg');
    font-weight: bold;
}

My font path is :

enter image description here

Upvotes: 0

Views: 300

Answers (2)

Robin Woudstra
Robin Woudstra

Reputation: 76

You can also try creating a web font

https://www.web-font-generator.com/

Upvotes: 1

Djordy Winckler
Djordy Winckler

Reputation: 74

Try to remove all the ' ' from the css.

This should work for you.

Upvotes: 0

Related Questions