Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jan 14, 2025
1 parent c495dfc commit 7a3fb83
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libmscore/sym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6653,6 +6653,24 @@ void ScoreFont::scanUserFonts(const QString& path, bool standard)
}
}

#if 0
QString metadataPath;
QStringList metadataFilenameOptions = {
"/metadata.json",
QString("/%1.json").arg(fontName),
QString("/%1_metadata.json").arg(fontName).toLower().remove(' ')
};
for (const auto& option : metadataFilenameOptions) {
if (QFile::exists(dirs.filePath() + option)) {
metadataPath = dirs.filePath() + option;
break;
}
}
if (metadataPath.isEmpty()) {
qDebug() << "No metadata file found for font" << fontName;
continue;
}
#endif
bool hasMetadataFile = QFileInfo::exists(fontDirPath + (standard ? fontName : "metadata") + ".json");

if (hasMetadataFile && !fontFilename.isEmpty()) {
Expand Down

0 comments on commit 7a3fb83

Please sign in to comment.