404 errors with woff files

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
m-and-f.paas
Posts: 1
Joined: 27 Oct 2021, 17:25

18 Nov 2022, 17:21

Hello team.

We have 404 errors with woff and woff2 files. These errors are reproducible on the showcase https://www.primefaces.org/sapphire-ng/#/.

It seems that the error comes from a style tag present in the head tag.

How can we solve this problem.

Thanks in advance

gucal
Posts: 50
Joined: 06 Sep 2022, 08:45

25 Nov 2022, 13:05

Hi,

You can update the font url paths in the file as follows.

src/assets/sass/_font.scss

Code: Select all

/* roboto-regular - latin-ext_latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto'), local('Roboto-Regular'),
    url('../layout/fonts/roboto-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../layout/fonts/roboto-v20-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* roboto-500 - latin-ext_latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: local('Roboto Medium'), local('Roboto-Medium'),
    url('../layout/fonts/roboto-v20-latin-ext_latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../layout/fonts/roboto-v20-latin-ext_latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* roboto-700 - latin-ext_latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local('Roboto Bold'), local('Roboto-Bold'),
    url('../layout/fonts/roboto-v20-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../layout/fonts/roboto-v20-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
We will fix this situation by updating the theme as soon as possible.

Thank you for the information.

Best Regards
Aliriza Gucal
PrimeNG Core Developer

Post Reply

Return to “Sapphire - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests