How does Qt handle label style with an invalid font family?
-
12-01-2021 - |
سؤال
I am currently extending a Qt application written for the United States for use in Korea and China. I have used Qt Linguist with great success but some strings have lost all their styling. Specifically, they have lost their weight and size.
If Qt tries to print a string with characters not supported in the font family, does it get the default style?
المحلول
It seems that the best way to handle fonts in internationalized applications is to choose a font based on the chosen language as there are very few fonts with adequate character set coverage.
لا تنتمي إلى StackOverflow