Why ASP.NET Core 2.2 MVC project require 2 copies of font file (.otf)? !!!HELP!!! RRS feed

  • Question

  • Hello:

    I am having a very strange problem, I am developing a simple ASP.Net 2.2 MVC Project here. I need to use custom font and I have a .otf file. However I am having a wired problem here. As you can see in following screencast, I am using following CSS declare the usage of the font

    And here is my folder structure and files of the project:

    As I highlighted in screen cast I have to have the one copy of font file in wwwroot folder and in project root directory in order for the font to be found and correctly shows on the webpage, delete either of those two, the webpage will not show correct file. By the way I have static file enabled in the program:I have tried to change the path of the otf file in css to point to the font file under wwwroot so I can have only one copy of font file, but it does not work.

    This problem is not a big deal for me now. Having two copy of font file doesn't really hurt anything. I am just wondering if I did this in proper way (may be I did not have correct configuration ?) or this is a bug?

     Anyone has any idea?

    Thank you

    Sunday, February 3, 2019 5:23 AM

All replies

  • https://forums.asp.net/

    It is where you can post for help.


    Sunday, February 3, 2019 7:03 AM
  • Hi Rusted Wizard,

    According to your description, your issue is more related about ASP.NET. And this forum is discussing and asking questions about Visual C#. So it will be more appropriate to ask your question at ASP.NET Forum.

    Thank you for your understanding.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, February 4, 2019 3:16 AM