Issues with loading fonts in AEM
Hello, I have an issue with loading the custom fonts in AEM 6.5.6.0. I have created the resources/fonts folder and kept the custom fonts and also set the allowProxy to access the Clientl-Library which is under /apps/.
Below is the entry that I have referenced in my css file.
@2375939-face {
font-display: fallback;
font-family: 'Sun';
font-style: normal;
font-weight: 700;
src: url('/etc.clientlibs/project/clientlibs/clientlib-site/resources/fonts/test.woff2') format('woff2')
}
above entries are transformed into a client library entry like regardless of accessing the pages from different folder (content/project/a.html or content/project/test/b.html or content/project/test/version/c.html )
@2375939-face {
font-display: fallback;
font-family: Sun;
font-style: normal;
font-weight: 700;
src: url(../../../../etc.clientlibs/project/clientlibs/clientlib-site/resources/fonts/test.woff2) format("woff2"), }
This relative path with ../../../../ added in the prefix, because of this issue, the fonts are not loading. is there a way to address this issue?


