Page 1 of 1

Not all theme fonts seem to load properly

Posted: Tue Apr 30, 2019 9:28 am
by MauriceLapre
Hi,

It seems that fonts for the Stockholm and Default theme don't seem to load properly, with version 0.0.4 and 1.0.0., using module import.

Stockholm:
theme-stockholm.png
theme-stockholm.png (9.42 KiB) Viewed 1509 times
Default:
theme-default.png
theme-default.png (9.05 KiB) Viewed 1509 times
Kind regards,

Maurice

Re: Not all theme fonts seem to load properly

Posted: Tue Apr 30, 2019 11:38 am
by mats
How can we reproduce this? Can you see it in our standard examples?

Re: Not all theme fonts seem to load properly

Posted: Tue Apr 30, 2019 2:39 pm
by MauriceLapre
No, in the online examples it's working fine. I've not set the local examples on my web server so can't look at them via the browser.
I've created a very simple HTML page with a css theme loaded:
<link rel="stylesheet" type="text/css" href="../../bryntumgantt/gantt-1.0.0-trial/build/gantt.stockholm.css" id="bryntum-theme">
Then compared it to the online theme examples, and if I'm not mistaken it's not looking the same.
All the files (css and font "fa-solid-900.woff2") are loaded fine.

Re: Not all theme fonts seem to load properly

Posted: Tue Jan 18, 2022 11:56 am
by peterlechner

Hi,

I do have the same problem. Is there something else you have to include beside the css to load the fonts correctly?
Thanks, Peter


Re: Not all theme fonts seem to load properly

Posted: Tue Jan 18, 2022 12:56 pm
by alex.l

Hi peterlechner,

Did you check our examples? What environment (framework) do you use?
We have guides for many frameworks but I don't know which one should I share with you. You can find the links here https://bryntum.com/docs/gantt/
@import "@bryntum/gantt/gantt.stockholm.css"; should be all you need.

Could you please share your app if it didn't help.


Re: Not all theme fonts seem to load properly

Posted: Tue Jan 18, 2022 2:04 pm
by peterlechner

Hi Alex,

I am using non of the common frameworks.
How can I do it with just plain JS.

<link rel="stylesheet" href="~/lib/bryntum/gantt.classic.css" type="text/css" id="bryntum-theme" />
<script type="text/javascript" src="~/lib/bryntum/gantt.umd.js"></script>

Fonts are located in lib/bryntum/fonts folder.

Thanks,
Peter


Re: Not all theme fonts seem to load properly

Posted: Tue Jan 18, 2022 5:58 pm
by peterlechner

Hi,

sorry...I didn't see all the samples you have. I will check that first and come back to you if I need help.
thanks, Peter