Clientlibs not loading the fonts when placed in apps

Avatar

Avatar

prajwalreddy

Avatar

prajwalreddy

prajwalreddy

30-04-2018

We have included the fonts using below syntax

@font-face {

  font-family: SlatePro-Bk;

  src: url("../css/fonts/SlatePro-Bk.woff") format("woff");

}

Font file is placed in apps/{project-folder}/clientlibs/{client-libraryfolder}/css/fonts/SlatePro-Bk.woff.

Fonts are not loaded it gives 404 error when the clientlib is rendered from apps using allowproxy= true. It is working fine when we move the clientlibraries to /etc/clientlibs.

Is this expected ? If yes, Do we have any other way to include the fonts/images in the clientlibrary?

View Entire Topic

Avatar

Avatar

prajwalreddy

Avatar

prajwalreddy

prajwalreddy

02-05-2018

Hi.. do you have any solution to the issue that was mentioned?