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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -