Our state of the art Gantt chart


Post 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 1486 times
Default:
theme-default.png
theme-default.png (9.05 KiB) Viewed 1486 times
Kind regards,

Maurice

Post by mats »

How can we reproduce this? Can you see it in our standard examples?

Post 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.

Post 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


Post 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.

All the best,
Alex


Post 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


Post 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


Post Reply