war - Importing Custom fonts -


i have use custom font have provide myself .war archive compiled maven. fonts available in following formats: eot, svg, woff, woff2 , ttf.

firefox , google chrome both manage files in formats upon http request fail use them. web console gives following errors depending on font file format: "rejected sanitizer, file length wrong, failed download"

i have tried using font sure wasn't caused file itself.

  1. are font files corrupted when archived?

  2. do have located in specific spot of archive?

turns out maven filters default ressources. problem fonts filter aka compressed. controling webressources compiled solved problem.

<webresource> <directory>src/main/resources/fonts</directory>     <targetpath>interface/fonts</targetpath>     <includes>        <include>**/**</include>     </includes> </webresource> 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -