From: Bastian Germann <bage@debian.org>
Date: Tue, 4 Mar 2025 20:09:05 +0100
Subject: Prevent explicitly setting default font

Works around:
error: ‘class App’ has no member named ‘setFont’
mApp->setFont(QFont(Constants::DefaultFont));
---
--- a/linphone-app/src/app/AppController.cpp
+++ b/linphone-app/src/app/AppController.cpp
@@ -102,7 +102,6 @@ AppController::AppController (int &argc, char *argv[]) {
 	}
 	qInfo() << "Available fonts : " << QFontDatabase().families();
 	
-	mApp->setFont(QFont(Constants::DefaultFont));
 }
 
 AppController::~AppController () {
--- a/linphone-app/src/components/settings/SettingsModel.cpp
+++ b/linphone-app/src/components/settings/SettingsModel.cpp
@@ -1559,7 +1559,7 @@ TunnelModel* SettingsModel::getTunnel() const{
 // =============================================================================
 
 QFont SettingsModel::getTextMessageFont() const{
-	QString family = Utils::coreStringToAppString(mConfig->getString(UiSection, "text_message_font", Utils::appStringToCoreString(App::getInstance()->font().family())));
+	QString family = Utils::coreStringToAppString(mConfig->getString(UiSection, "text_message_font", Utils::appStringToCoreString(QApplication::font().family())));
 	int pointSize = getTextMessageFontSize();
 	return QFont(family,pointSize);
 }
