Kendo fonts are not copied during publish wizard

2 posts, 1 answers
  1. Vadim
    Vadim avatar
    16 posts
    Member since:
    Jul 2013

    Posted 04 Nov 2017 Link to this post

    That was weird,
    I am using VS 2015 to publish a web project to local drive.
    Everything was good except kendo fonts were not included in the destination folders.

    I am talking about:






    I manually copied them to website destination folders and then they appeared on the page

    Any thoughts?

    Thank you 


  2. Answer
    Dimitar avatar
    760 posts

    Posted 07 Nov 2017 Link to this post

    Hello Vadim,

    Can you verify that the font files are properly included in the project? If this is not the case, then you can do it manually by right clicking on each item and the select "Include in project". In addition to this In Visual Studio, by default, some font files are not including during Publish (.ttf, .woff, .json). Therefore, make sure that the Build Action property for those files is set to "Content".

    In case the above does not help to resolve the issue, you can try adding the mimeMap to the web.config as follows:
          <mimeMap fileExtension="woff" mimeType="application/font-woff" />
          <mimeMap fileExtension="woff2" mimeType="application/font-woff" />

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.

    If your files are not included in the project (just in the file structure), in visual studio click the Show All Files Icon in the solution Explorer (looks like 3 pages). Right Click on the files and select "Include in Project"

    Access the file properties by right clicking, then make sure the Build Action property is set to "Content".

Back to Top