Font icon does not show

Asked

Viewed 26 times

0

I created a font using the Inkscape app. and then converted it into a site that I don’t remember at the time... while I am using this font in visual studio, the font shows perfectly, as shown in the following image: inserir a descrição da imagem aqui

however when I publish the project, and run it on the local IIS, it does not show the icone, only the letter. as shown in the following image: inserir a descrição da imagem aqui

someone knows how I can do to show the icone, as in the first picture?

this is the CSS, using:

@font-face {
    font-family: 'Smc';
    src: url('../fonts/ismc.eot');
    src: url('../fonts/ismc.eot?#iefix') format('embedded-opentype'), url('../fonts/ismc.woff') format('woff'), url('../fonts/ismc.ttf') format('truetype'), url('../fonts/ismc.svg') format('svg');
    src: local('☺'), url('../fonts/ismc.woff') format('woff'), url('../fonts/ismc.ttf') format('truetype');
}

.smc:before {
    content: 'S'
}

.smc:before {
    font-size: 60px;
    font-family: 'Smc';
    font-style: normal;
    color: #114876;
}
  • Have you seen if the post includes all the files correctly?

  • Already yes.. inclusive, I changed some folder files, to test, and even then, it does not appear yet.

  • Already tried to delete everything from the post and publish again, without any file open in another process?

  • No. Not yet that...

  • try and say if solved ;)

  • 1

    Dude, I got.... it was stupid my.... css, it’s in a folder called Css. inside the folder, I have the.css style and a folder with the fonts, the problem was that I was calling in the following way. ../pasta/fonte.extensão, but it was just pasta/fonte.extensão

  • Glad you made it, good continuation of development

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.