Answer the question
In order to leave comments, you need to log in
Problem with QML fonts?
Hey! I'm having trouble displaying fonts on Android. On the computer they look just right. I did a separate resource file for fonts - it did not help. What is the problem? And in general, what advice can you give about developing mobile applications with Qt?
Answer the question
In order to leave comments, you need to log in
1. Is scale included?
2. There is a problem with different font sizes even when transferring between Windows and Linux, you can multiply font sizes in QML by a global constant, conditionally:
#ifdef Q_OS_ANDROID
engine.rootContext()->setContextProperty("pt", 1,25);
#else
engine.rootContext()->setContextProperty("pt", 1);
#endif
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question