Skip to content

[4.7.x] Fix finding external Musical Text Fonts and their metadata.json files#33763

Open
Jojo-Schmitz wants to merge 2 commits into
musescore:4.7from
Jojo-Schmitz:4.7-external-smulf-fonts
Open

[4.7.x] Fix finding external Musical Text Fonts and their metadata.json files#33763
Jojo-Schmitz wants to merge 2 commits into
musescore:4.7from
Jojo-Schmitz:4.7-external-smulf-fonts

Conversation

@Jojo-Schmitz

@Jojo-Schmitz Jojo-Schmitz commented Jun 10, 2026

Copy link
Copy Markdown
Contributor
  • find musical text fonts even if the font file names don't have a space before the "Text" in their filename
  • make sure the metadata.json files follow common naming conventions rather that doing a wildcard search on "*.json" and picking the last match

Backport of #33757

if those don't have a space before the "Text" in their filename
So far all fonts I've encountered have their metadata.json named "FontName.json" (mixed case, possible containing spaces, same as the fontname itself, the only documented option for non-private fonts), "fontname_metadata.json" (all lowercase, no spaces) or "metadata.json" (lowercase), so let's search for these, in that order and stop at the 1st hit.
As a last reseort leave the previous iteration method (which stops at the last match for "*.json").
@Jojo-Schmitz Jojo-Schmitz force-pushed the 4.7-external-smulf-fonts branch from 5c480d2 to 0fc75df Compare June 11, 2026 23:07
@Jojo-Schmitz Jojo-Schmitz changed the title [4.7.x] Fix finding external Musical Text Fonts [4.7.x] Fix finding external Musical Text Fonts and their metadata.json files Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants