Make Droid Sans Mono available as fixed font for all Android styles

Fixes: QTBUG-87405
Change-Id: I54ebc06c82c32acd0383ea5fedf78acce4e11977
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
bb10
Andreas Buhr 2022-02-09 16:38:27 +01:00
parent 40e2bf3495
commit d456102962
2 changed files with 5 additions and 3 deletions

View File

@ -227,6 +227,11 @@ static std::shared_ptr<AndroidStyle> loadAndroidStyle(QPalette *defaultPalette)
if (style->m_styleData.isEmpty())
return std::shared_ptr<AndroidStyle>();
{
QFont font(QLatin1String("Droid Sans Mono"), 14.0 * 100 / 72);
style->m_fonts.insert(QPlatformTheme::FixedFont, font);
}
for (QJsonObject::const_iterator objectIterator = style->m_styleData.constBegin();
objectIterator != style->m_styleData.constEnd();
++objectIterator) {

View File

@ -1,5 +1,2 @@
[systemFixedFont] # QTBUG-54623
b2qt
# QTBUG-87405
[systemFixedFont]
android