Only bundle Droid fallback font on Embedded edition
Normal Linux/Windows/Mac should have support for Asian fonts themselves.
This commit is contained in:
@@ -76,7 +76,8 @@ int main(int argc, char *argv[])
|
||||
/* Set default font */
|
||||
QStringList fontList = QFontDatabase::applicationFontFamilies(QFontDatabase::addApplicationFont(":/fonts/Roboto-Regular.ttf"));
|
||||
QGuiApplication::setFont(QFont(fontList.first(), 10));
|
||||
QFontDatabase::addApplicationFont(":/fonts/DroidSansFallback.ttf");
|
||||
if (QFile::exists("/usr/share/fonts/truetype/droid/DroidSansFallback.ttf"))
|
||||
QFontDatabase::addApplicationFont("/usr/share/fonts/truetype/droid/DroidSansFallback.ttf");
|
||||
|
||||
QLocale::Language l = QLocale::system().language();
|
||||
if (l == QLocale::AnyLanguage || l == QLocale::C)
|
||||
|
||||
@@ -35,6 +35,5 @@
|
||||
<file>qmlcomponents/ImButton.qml</file>
|
||||
<file>qmlcomponents/ImCheckBox.qml</file>
|
||||
<file>qmlcomponents/ImRadioButton.qml</file>
|
||||
<file>fonts/DroidSansFallback.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user