slint
slint copied to clipboard
Inter font weights are not recognized
I installed the desktop weighted version of the Inter font family, but sixtyfps seems to only recognize regular and bold:

Even if I manually import every weight from the filesystem:
import "./Inter/Inter-Thin.otf";
import "./Inter/Inter-ThinItalic.otf";
import "./Inter/Inter-ExtraLight.otf";
import "./Inter/Inter-ExtraLightItalic.otf";
import "./Inter/Inter-Light.otf";
import "./Inter/Inter-LightItalic.otf";
import "./Inter/Inter-Regular.otf";
import "./Inter/Inter-Italic.otf";
import "./Inter/Inter-Medium.otf";
import "./Inter/Inter-MediumItalic.otf";
import "./Inter/Inter-SemiBold.otf";
import "./Inter/Inter-SemiBoldItalic.otf";
import "./Inter/Inter-Bold.otf";
import "./Inter/Inter-BoldItalic.otf";
import "./Inter/Inter-ExtraBold.otf";
import "./Inter/Inter-ExtraBoldItalic.otf";
import "./Inter/Inter-Black.otf";
import "./Inter/Inter-BlackItalic.otf";
the same issue occurs.
I know the imported font is being used, because importing the variable font causes the bold weight to disappear, as it appears sixtyfps also does not support variable fonts.
Also, having those 9 Text widgets on the screen causes resizing to suddenly become extremely choppy, even in the release build. I can't profile it because I'm stuck on Windows for the foreseeable future.
This fortunately works now, with Qt (naturally), FemtoVG (thanks to fontdb matching), as well as Skia (thanks to use of CoreText).