dosubot[bot] commented on issue #37226: URL: https://github.com/apache/superset/issues/37226#issuecomment-3764355979
<!-- Greeting --> Hi @Gradsta! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> This is a known issue in Superset 6.0.0: the Inter font won't load unless the `@fontsource/inter` package is present and imported in the frontend build. In 6.0.0, the Docker build process relies on frontend source imports to include fonts—there's no explicit step to package or copy font files beyond what's in the source code. If `@fontsource/inter` is missing from `package.json` or not imported in the theme source, the Inter font CSS won't be bundled, and you'll see fallback fonts like Helvetica instead. This is a change from 5.0.0, where font handling may have differed. To fix this, add `@fontsource/inter` as a dependency in `superset-frontend/package.json` and ensure it's imported in your theme file (e.g., `Theme.tsx`). Then rebuild the frontend assets. If you're using a custom theme or loading Inter from a CDN, make sure your Content Security Policy (CSP) allows the font source, or the browser will block it. More details and related discussions are available in [this issue](https://github.com/apache/superset/issues/37096) and [this discussion](https://github.com/apache/superset/discussions/34397). If you want to check if the font is being loaded, inspect the built static assets for Inter font CSS and look for any font loading errors in your browser's network tab. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e45021df-823c-4d96-bb29-bc941a98ba6e?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20in%20Superset%206.0.0%3A%20the%20Inter%20font%20won%27t%20load%20unless%20the%20%60%40fontsource/inter%60%20package%20is%20present%20and%20imported%20in%20the%20frontend%20build.%20In%206.0.0%2C%20the%20Docker%20build%20process%20relies%20on%20frontend%20source%20imports%20to%20include%20fonts%E2%80%94there%27s%20no%20explicit%20step%20to%20package%20or%20copy%20font%20files%20beyond%20what%27s%20in%20the%20source%20code.%20If%20%60%40fontsource/inter%60%20is%20missing%20from%20%60package.json%60%20or%20not%20imported%20in%20the%20theme%20source%2C%20the%20Inter%20font%20CSS%20won%27t%20be%20bundled%2C%20and%20you%27ll%20see%20fallback%20fonts%20like%20Helvetica%20instead.%20This%20is%20a%20change%20from%205.0.0%2C%2 0where%20font%20handling%20may%20have%20differed.%0A%0ATo%20fix%20this%2C%20add%20%60%40fontsource/inter%60%20as%20a%20dependency%20in%20%60superset-frontend/package.json%60%20and%20ensure%20it%27s%20imported%20in%20your%20theme%20file%20%28e.g.%2C%20%60Theme.tsx%60%29.%20Then%20rebuild%20the%20frontend%20assets.%20If%20you%27re%20using%20a%20custom%20theme%20or%20loading%20Inter%20from%20a%20CDN%2C%20make%20sure%20your%20Content%20Security%20Policy%20%28CSP%29%20allows%20the%20font%20source%2C%20or%20the%20browser%20will%20block%20it.%20More%20details%20and%20related%20discussions%20are%20available%20in%20%5Bthis%20issue%5D%28https%3A//github.com/apache/superset/issues/37096%29%20and%20%5Bthis%20discussion%5D%28https%3A//github.com/apache/superset/discussions/34397%29.%0A%0AIf%20you%20want%20to%20check%20if%20the%20font%20is%20being%20loaded%2C%20inspect%20the%20built%20static%20assets%20for%20Inter%20font%20CSS%20and%20look%20for%20any%20font%20loading%20errors%20in%20your%20brows er%27s%20network%20tab.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37226) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
