I can't load fonts while using tomcat -


i have such errors while loading fonts when using tomcat:

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-bold-webfont.woff2

1 ots parsing error: failed convert woff 2.0 font sfnt

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-regular-webfont.woff2

1 ots parsing error: failed convert woff 2.0 font sfnt

1 failed decode downloaded font: https://my-address.com/css/fonts/fontawesome-webfont.woff2?v=4.3.0

1 ots parsing error: failed convert woff 2.0 font sfnt

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-regular-webfont.woff

1 ots parsing error: incorrect file size in woff header

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-bold-webfont.woff

1 ots parsing error: incorrect file size in woff header

https://fake.com/ failed load resource: net::err_blocked_by_client

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-regular-webfont.ttf

1 ots parsing error: fftm: misaligned table

1 failed decode downloaded font: https://my-address.com/css/fonts/fontawesome-webfont.woff?v=4.3.0

1 ots parsing error: incorrect file size in woff header

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-bold-webfont.ttf

1 ots parsing error: gdef: misaligned table

1 failed decode downloaded font: https://my-address.com/css/fonts/fontawesome-webfont.ttf?v=4.3.0

1 ots parsing error: incorrect entryselector table directory

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-light_0-webfont.woff2

1 ots parsing error: failed convert woff 2.0 font sfnt

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-light_0-webfont.woff

1 ots parsing error: incorrect file size in woff header

1 failed decode downloaded font: https://my-address.com/css/fonts/robotocondensed-light_0-webfont.ttf

1 ots parsing error: fftm: invalid table offset

i don't have errors when starting spring-boot. proper files in https://my-address.com/css/fonts/ folder. , fonts should loaded, aren't displayed correctly. repair make works?

if use maven-resources-plugin copy webapp static resources (including fonts) option <filtering>true</filtering> reason corruption of resources.

in such case can set filtering false (example):

<plugin>             <artifactid>maven-resources-plugin</artifactid>             <version>2.6</version>             <executions>                 <execution>                     <id>copy-frontend-resources</id>                        <phase>process-resources</phase>                     <goals>                         <goal>copy-resources</goal>                     </goals>                     <configuration>                         <outputdirectory>${basedir}/target/classes/static</outputdirectory>                         <resources>                             <resource>                                 <directory>${basedir}/target/build</directory>                                  <filtering>false</filtering> <!-- set false prevent resources corruption -->                              </resource>                         </resources>                     </configuration>                 </execution>             </executions>         </plugin> 

more maven resource filtering

another alternative exclude resources filtering (see @eppsilon comment below).


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -