Skip to content

Commit

Permalink
Disable broken font download until we update to QGIS 3.38
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 23, 2024
1 parent 3024a71 commit cafa599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/core/qgismobileapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ QgisMobileapp::QgisMobileapp( QgsApplication *app, QObject *parent )
QFontDatabase::addApplicationFont( ":/fonts/CadastraSymbol-Mask.ttf" );
QFontDatabase::addApplicationFont( ":/fonts/CadastraSymbol-Regular.ttf" );

QgsApplication::fontManager()->enableFontDownloadsForSession();
// TODO: Enable when updating to QGIS 3.38 (font download in QGIS 3.36 broken due to change
// in Google's fonts service
//QgsApplication::fontManager()->enableFontDownloadsForSession();

mProject = QgsProject::instance();
mTrackingModel = new TrackingModel();
Expand Down
6 changes: 2 additions & 4 deletions test/spix/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ def test_projection(app, screenshot_path, screenshot_check, extra, process_alive
extra.append(extras.html("Message logs content: {}".format(message)))
messagesCount = messagesCount + 1
extra.append(extras.html("Message logs count: {}".format(messagesCount)))
# Due to mysterious 'Error opening zip archive' messages, we have to accept 1 as "valid" for now
assert messagesCount < 2
assert messagesCount == 0


@pytest.mark.project_file("test_svg.qgz")
Expand Down Expand Up @@ -206,8 +205,7 @@ def test_postgis_ssl(app, screenshot_path, screenshot_check, extra, process_aliv
extra.append(extras.html("Message logs content: {}".format(message)))
messagesCount = messagesCount + 1
extra.append(extras.html("Message logs count: {}".format(messagesCount)))
# Due to mysterious 'Error opening zip archive' messages, we have to accept 1 as "valid" for now
assert messagesCount < 2
assert messagesCount == 0


if __name__ == "__main__":
Expand Down

0 comments on commit cafa599

Please sign in to comment.