Skip to content
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

Can't change Script.font-size in grace moment #28

Open
uliska opened this issue Feb 20, 2019 · 0 comments
Open

Can't change Script.font-size in grace moment #28

uliska opened this issue Feb 20, 2019 · 0 comments
Labels

Comments

@uliska
Copy link
Contributor

uliska commented Feb 20, 2019

\editionMods addressed to grace moments don't affect Script.font-size while they properly affect Script.color. (I don't know what other properties might be affected by this shortcoming:

\version "2.19.82"

\include "oll-core/package.ily"
\loadPackage edition-engraver

\addEdition test

% "Regular" mods, change 'color' and 'font-size' as expected
\editionMod test 1 0/4 test.Voice.A \once \override Script.color = #red
\editionMod test 2 0/4 test.Voice.A \once \override Script.font-size = 3

% In grace moment, only 'color' is affected, but not 'font-size'
\editionMod test 3 #(ly:make-moment 0 4 -1 4) test.Voice.A {
  \once \override Script.color = #red
  % font-size = 0 should result in the same size as the fermata in m. 1
  \once \override Script.font-size = 0
}

\new Staff {
  c'1 ^\fermata
  c' ^\fermata
  \grace d'4 ^\fermata
  c'1
}

\consistToContexts #edition-engraver Score.Staff.Voice
\layout {
  \context {
    \Score
    \editionID ##f test
  }
}

image

@uliska uliska added the bug label Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant