Fonts look different when building with Craft

I’m building an app using KDE Craft and the fonts look different than my Plasma fonts. I also tried building Kirigami-Gallery in Craft and it has the same font issue.

Is this most-likely caused by the slightly different versions of KDE frameworks and QT between the system and Craft? Or is there something else that may be the culprit?

When I run the app, I run it outside of the Craft environment. Here is a screenshot that shows KDE settings alongside my apps about screen.

TIA for any help!

We can try the font on the left (craft built) is a mono font, seems like a fallback.

That seems like a build issue of configuration issue of the craft environment. Perhaps it doesn’t have the fonts available. I have no clue.

Thank you, @meven. I’ll look into fonts that are available in CraftRoot tomorrow when I get a chance.

I can’t find any fonts in the CraftRoot directory. I did make sure to reinstall fontconfig and freetype though, but it made no difference. :frowning:

SOLVED!

I got some help from the KDE Craft Matrix channel. The issue is that Craft supports running apps from within the “craftenv” or from AppImages build in Craft. When running it outside the Craft environment, I was missing where Craft was setting the correct FONTCONFIG_PATH environment variable. When I ran the app with that environment variable set, it worked properly. Once I’m done testing it some more, I’ll build the AppImage.

Thanks KDE community!