slint icon indicating copy to clipboard operation
slint copied to clipboard

Inter font weights are not recognized

Open LoganDark opened this issue 4 years ago • 2 comments
trafficstars

I installed the desktop weighted version of the Inter font family, but sixtyfps seems to only recognize regular and bold:

image

LoganDark avatar Oct 24 '21 20:10 LoganDark

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.

LoganDark avatar Oct 24 '21 21:10 LoganDark

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.

LoganDark avatar Oct 25 '21 03:10 LoganDark

This fortunately works now, with Qt (naturally), FemtoVG (thanks to fontdb matching), as well as Skia (thanks to use of CoreText).

tronical avatar Jan 19 '24 14:01 tronical