This is a migrated thread and some comments may be shown as answers.

Kendo fonts are not copied during publish wizard

1 Answer 288 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vadim
Top achievements
Rank 1
Vadim asked on 04 Nov 2017, 10:16 PM

HI,
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:
Styles\images\kendoui.ttf

Styles\images\kendoui.woff

Styles\fonts\glyphs\KendoUIGlyphs.eot

Styles\fonts\glyphs\KendoUIGlyphs.ttf

Styles\fonts\glyphs\KendoUIGlyphs.woff

Styles\fonts\glyphs\WebComponentsIcons.eot
Styles\fonts\glyphs\WebComponentsIcons.ttf
Styles\fonts\glyphs\WebComponentsIcons.woff

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

Any thoughts?

Thank you 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 07 Nov 2017, 02:06 PM
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:
<system.webServer>
    <staticContent>
      <mimeMap fileExtension="woff" mimeType="application/font-woff" />
      <mimeMap fileExtension="woff2" mimeType="application/font-woff" />
         ...
    </staticContent>
</system.webServer>

Regards,
Dimitar
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".

Tags
Grid
Asked by
Vadim
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or