I've created a Qt application and using FontLoader set a font which is proper and as expected in Windows Qt Creator, but when the same thing is run in Linux (Ubuntu) machine it is always been seen as bold/regular a combination of both, can somebody suggest me how to see the same font display both in Linux and Windows OS?
FontLoader {
id: localFont;
source: "fonts/LiberationSerif-Italic.ttf"
}
I figured out the issue myself Thanks for @Velkan which led me to check different options.
font.weight: "Extra Light"
font.weight: "Regular"
font.weight: "SemiBold"
Setting the above property gives me the relevant display wherever required.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.