Skip to content

Commit

Permalink
Update src/core/textrenderer/qgsfontmanager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Jun 25, 2024
1 parent 0ab1685 commit c4cd054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/textrenderer/qgsfontmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1946,9 +1946,13 @@ bool QgsFontManager::installFontsFromData( const QByteArray &data, QString &erro
QgsDebugMsgLevel( QStringLiteral( "Font sourcePath: %1" ).arg( sourcePath ), 2 );
const QFileInfo sourcePathFileInfo( sourcePath );
if ( sourcePathFileInfo.exists() )
{
QgsDebugMsgLevel( QStringLiteral( "Font sourcePath %1 exists: %2" ).arg( sourcePath, sourcePathFileInfo.size() ), 2 );
}
else
{
QgsDebugMsgLevel( QStringLiteral( "Font sourcePath %1 doesn't exist" ).arg( sourcePath ), 2 );
}

//try to install the data directly as a font
int id = QFontDatabase::addApplicationFont( sourcePath );
Expand Down

0 comments on commit c4cd054

Please sign in to comment.