Closed KOliver94 closed 1 day ago
@onursenture can you help here this looks like something is invalid with the theme or font.
The error "Failed to convert WOFF 2.0 font to SFNT" typically occurs when there is an issue converting a Web Open Font Format version 2.0 (WOFF 2.0) font file to a standard TrueType or OpenType font (SFNT). SFNT stands for "Spline Font" and is a font file format used for TrueType and OpenType fonts.
This error can occur for several reasons:
Corrupt Font File: The WOFF 2.0 file might be corrupted or improperly formatted. Unsupported Features: The conversion tool or software might not support certain features or structures present in the WOFF 2.0 file. Compatibility Issues: There might be compatibility issues between the font file and the tool or software attempting the conversion. Software Bugs: There could be bugs or limitations in the software performing the conversion.
I'm having the same problem with the default Lara themes, so I switched to Viva. Unfortunately, there are new yet similar errors:
Same here. Screenshot attached.
I got the same error with primereact version 10.7.0 . i just downgraded the version to 10.5.0 now it seems to be showing no error and working fine. seems like in version 10.7.0 the fonts are corrupted since i cannot preview them in extension or browser which is not the case in 10.5.0. .
Hey guys,
It's still in issue in version 10.8.0
. I think it's a pretty big problem as none of the default themes work properly. Can you please try to fix it?
Reproducation environment with the newly released version: https://stackblitz.com/edit/kcrywb?file=package.json
@onursenture ping...
@onursenture ping...
I've updated the Inter font: https://github.com/primefaces/primereact/commit/91d18f0819aa17a7acb0ea87154c6699eab6302a
Could you verify if the issue is fixed?
Hey @onursenture,
I've built primereact
locally and installed it to my project. You can see it tries to load the new fonts but still fails.
As I was already there I narrowed down the cause of the issue to this commit https://github.com/primefaces/primereact/commit/d3da7173a54982471ce0a8333583b033573232cb. The new gulp
major version introduced a change with encoding which breaks fonts by default. See related issues: https://github.com/gulpjs/gulp/issues/2797, https://github.com/gulpjs/gulp/issues/2790
I opened a PR with the fix: https://github.com/primefaces/primereact/pull/6977
Describe the bug
The fonts are not loaded properly with the new
10.7.0
version and I see the following warnings in the console. The browser uses a fallback font asInter
could not be loaded.Reproducer
No response
PrimeReact version
10.7.0
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 126.0.6478.127
Steps to reproduce the behavior
10.7.0
.Arial
as fallback)Expected behavior
Fonts loaded properly as in earlier versions.