-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support/use musical font files' x-offset for stems #672
base: 3.x
Are you sure you want to change the base?
Conversation
b56ed2c
to
db96eb7
Compare
26aafcb
to
0222fd4
Compare
Here's to hoping you get this resolved... |
0222fd4
to
85a0d8a
Compare
Oh yeah that looks better. Two things I noticed: Check out the braces for the staves... on a grand staff. Its y-offset is imbalanced, and not sure the cause: Also, those stems for the whole notes look like ever so slightly could be benefited from having the y-starting positions be some how reduced (nit pick) so that the width of the stem doesn't show up inside the "empty" part of the note head and blends instead with the head's sort of "stemmy" portions. But whatever, it's not a big deal: |
I wouldn't like to code Valerio exceptions, I'd rather restrict exeptions to builtin fonts that need them No good idea what's going wrong that that brace, it is only Valerio and only this brace, not braceSmall, braceLarge or braceLarger (which it'd fallback to be using Bravura's), Removing that brace's metadata doesn't seem to make any difference. diff --git a/libmscore/bracket.cpp b/libmscore/bracket.cpp
index 26f572fa48..aefd3ca0d7 100644
--- a/libmscore/bracket.cpp
+++ b/libmscore/bracket.cpp
@@ -130,7 +130,7 @@ void Bracket::setStaffSpan(int a, int b)
if (v == 1)
_braceSymbol = SymId::braceSmall;
- else if (v <= 2)
+ else if (v <= 2 && score()->styleSt(Sid::musicalSymbolFont) != "Valerio")
_braceSymbol = SymId::brace;
else if (v <= 3)
_braceSymbol = SymId::braceLarge; Or treat Valerio the same as Emmentaler and Gonville, i.e. draw the brace 'manually' rather than taking the font's glyph. |
85a0d8a
to
2e91920
Compare
The Valerio brace issue is resolved, in version 1.001 of that font |
There are more issues, but without working vtests I can only judge from the vtests of the port of this PR to upstream master, see musescore#25050 (comment) |
Are the vtests in 3.7 not as robust as the 4.x series? I wonder "whadda they got that I ain't got?" as related to this repo |
They apparently don't do anything usefull at all. on upstream master the method has changed quite drastical, here not at all or no much vs. the former working ones upstream 3.x |
Damn, and since layout is different on 4, can't just easily backport them... |
2e91920
to
da103fc
Compare
OK, taking a different approach now for the special treatments (changing the x-offsets for the 'broken' fonts), only for the affected glyphs (basically |
da103fc
to
6a121cd
Compare
Resolves https://musescore.org/en/node/369769#comment-1261591 See also the port to mu4/master at musescore#25050
6a121cd
to
d192f34
Compare
Resolves: musescore#25088
Resolves: https://musescore.org/en/node/369769#comment-1261591
Needs special treatment for Bravura, Emmentaler (particularly bad metadata apparenty), Gonville and Petaluma, these fonts' metadata seem to disargee with the stems being offset by half a stem width to the left for upstem notes/chords.