Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111528

Android font does not depend on locale/OS preference but is hardcoded

XMLWordPrintable

    • Android
    • 476e8f8ae (dev), c6a86b616 (6.6), c549a1283 (tqtc/lts-6.5), 72d6c2956 (tqtc/lts-6.2), 7cfc621aa (tqtc/lts-5.15)
    • 2023wk16FOQtforAndroid, 2023wk18FOQtforAndroid, 2023wk20FOQtforAndroid, 2023wk22FOQtforAndroid, 2023wk24FOQtforAndroid, 2023wk26FOQtforAndroid, 2023wk42FOQtforAndroid, 2023wk44FOQtforAndroid, 2023wk46FOQtforAndroid

      On Android, I think it's just a hardcoded prioritized list and then alphabetical for the rest of the fonts. For example Chinese will be always preferred over Japanese if the default fonts cannot handle Japanese correctly. So it is possible that this could be improved to prefer locale-fonts first.

      This issue can be reproduced by displaying some characters affected by Han-unification problem. For example, QString("\u76f4\u7dda") can be displayed in either Chinese or Japanese because the Unicode supports both variants. But on Android, it is displayed in Chinese whatsoever, regardless of, for example, QLocale settings or OS language settings.

      Issue is not repro on Android 9, but on Android 11 it is on Qt 5.15.9. With Qt 5.15.3 it is not repro

        For Gerrit Dashboard: QTBUG-111528
        # Subject Branch Project Status CR V

            lapohjan Lauri Pohjanheimo
            luqiaochen Luqiao Chen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: