mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Embedded: fix font support for eastern countries
This commit is contained in:
parent
0b130540f4
commit
c4cfcd0604
4 changed files with 4 additions and 2 deletions
BIN
src/fonts/DroidSansFallback.ttf
Normal file
BIN
src/fonts/DroidSansFallback.ttf
Normal file
Binary file not shown.
|
@ -160,8 +160,8 @@ ImageWriter::ImageWriter(QObject *parent)
|
|||
{
|
||||
QString langcode = tf.mid(11, tf.length()-14);
|
||||
/* FIXME: we currently lack a font with support for Chinese characters in embedded mode */
|
||||
if (isEmbeddedMode() && langcode == "zh")
|
||||
continue;
|
||||
//if (isEmbeddedMode() && langcode == "zh")
|
||||
// continue;
|
||||
|
||||
QLocale loc(langcode);
|
||||
/* Use "English" for "en" and not "American English" */
|
||||
|
|
|
@ -76,6 +76,7 @@ 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");
|
||||
|
||||
QLocale::Language l = QLocale::system().language();
|
||||
if (l == QLocale::AnyLanguage || l == QLocale::C)
|
||||
|
|
|
@ -35,5 +35,6 @@
|
|||
<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