hunter-koppen / WhiteLabelModule

Other
0 stars 0 forks source link

404 File not found for font #1

Open martin-de-heer-mendix opened 9 months ago

martin-de-heer-mendix commented 9 months ago

Hi,

Great module! However, after installing it on a clean 9.24.11 project i get 404 - file not found for file: resources%2Ffonts%2Fopen-sans%2Fopen-sans.css in the console. I am fixing it for this project, but maybe it is possible to fix it in the module as well.

Regards,

Martin

hunter-koppen commented 9 months ago

Hi @martin-de-heer-mendix, that is actually a default Mendix thing. If you create a new clean mendix app you will see in the custom variables file the following code where it references the open sans css file. I basically did not touch anything except for moving the Sass functions Lighten/Darken & Mix. So I'm not sure what I can fix about it. image

martin-de-heer-mendix commented 9 months ago

Hi Hunter,

Thank you for your response. After delving deeper, I discovered the root of the discrepancy. I was following Mendix documentation (https://docs.mendix.com/howto/front-end/customize-styling-new/#111-downloading-font-files), which instructs to create the directory /theme/web/fonts/ (without 'resources'). You are correct that a fresh Mendix installation uses $font-family-import: "resources/fonts/open-sans/open-sans.css";, which should not result in an error. This seems to be a deviation in the documentation I followed versus the standard Mendix setup. I appreciate your insight, which helped me trace back the issue.

Best regards,

Martin