Skip to content

Commit

Permalink
Enable automatic fetching of missing fonts through QGIS' font manager
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 2, 2023
1 parent f69a045 commit 19a64af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgismobileapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
#include <qgsfeature.h>
#include <qgsfield.h>
#include <qgsfieldconstraints.h>
#include <qgsfontmanager.h>
#include <qgsgeopackageprojectstorage.h>
#include <qgslayertree.h>
#include <qgslayertreemodel.h>
Expand Down Expand Up @@ -249,6 +250,8 @@ QgisMobileapp::QgisMobileapp( QgsApplication *app, QObject *parent )
QFontDatabase::addApplicationFont( ":/fonts/CadastraSymbol-Mask.ttf" );
QFontDatabase::addApplicationFont( ":/fonts/CadastraSymbol-Regular.ttf" );

QgsApplication::fontManager()->enableFontDownloadsForSession();

mProject = QgsProject::instance();
mGpkgFlusher = std::make_unique<QgsGpkgFlusher>( mProject );
mLayerObserver = std::make_unique<LayerObserver>( mProject );
Expand Down

1 comment on commit 19a64af

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.