mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-17 23:45:21 +01:00
Only bundle Droid fallback font on Embedded edition
Normal Linux/Windows/Mac should have support for Asian fonts themselves.
This commit is contained in:
parent
6861a2aa16
commit
93811dfdbd
3 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue