-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add even more info on loaded fonts #5432
Conversation
🎉 Ta-daaa, freshly created APKs are available for 0e19a5e: arm64-android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we extract the common logic into a separate function ?
void registerFont(const QString &fontFile) {
const int id = QFontDatabase::addApplicationFont(QDir::cleanPath(fontDir.path() + QDir::separator() + fontFile));
if (id >= 0) {
qInfo() << .. ;
qInfo() << .. ;
} else {
QgsMessageLog:: ...
}
}
@@ -245,8 +245,12 @@ QgisMobileapp::QgisMobileapp( QgsApplication *app, QObject *parent ) | |||
for ( const QString &fontFile : fontFiles ) | |||
{ | |||
const int id = QFontDatabase::addApplicationFont( QDir::cleanPath( fontDir.path() + QDir::separator() + fontFile ) ); | |||
qInfo() << QStringLiteral( "App-wide font registered: %1" ).arg( QDir::cleanPath( fontDir.path() + QDir::separator() + fontFile ) ); | |||
if ( id == -1 ) | |||
if ( id >= 0 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here.
@@ -774,8 +778,12 @@ void QgisMobileapp::readProjectFile() | |||
for ( const QString &fontFile : fontFiles ) | |||
{ | |||
const int id = QFontDatabase::addApplicationFont( QDir::cleanPath( fontDir.path() + QDir::separator() + fontFile ) ); | |||
qInfo() << QStringLiteral( "Project font registered: %1" ).arg( QDir::cleanPath( fontDir.path() + QDir::separator() + fontFile ) ); | |||
if ( id == -1 ) | |||
if ( id >= 0 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here.
No description provided.