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.
are font files corrupted when archived?
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
Post a Comment