Menu

#4996 Make easyHeads correctly heed the fontSize context property

Fixed
Enhancement
2017-10-17
2016-11-11
No

Use make-fontsize-markup

http://codereview.appspot.com/330500043

Unlike normal note heads, the note heads used after easyHeadsOn don’t correctly heed the fontSize context property, as altered by \huge and similar. The size of the letters in the note heads is changed indeed, but not the note heads themselves.

:::TeX
\version "2.19.49"
mus = {
  c' d' e' f'
  \easyHeadsOn
  c' d' e' f'
  \easyHeadsOff
  c' d' e' f'
}
<<
  \new Staff { \huge \mus }
  \new Staff { \teeny \mus }
>>
1 Attachments

Discussion

1 2 > >> (Page 1 of 2)
  • Simon Albrecht

    Simon Albrecht - 2016-11-12

    The problem also occurs when overriding NoteHead.font-size directly, which also highlights the actual problem behind this. The actual NoteHead is not taken from a font with easyHeadsOn, which is why it doesn’t respond to font size settings.
    Nevertheless I consider the feature request valid.

     
  • Thomas Morley

    Thomas Morley - 2016-11-12

    More precisely, the note-head for easyHeads is constructed with note-head::brew-ez-stencil from scm/output-lib.scm. The used markup-commands are ensuring the final circle fits exactly between staff-lines by looking at staff-space (and line-thickness). So any size of the font will take no effect on the note-head-circle, unless staff-space changes.

    In other words, the current coding disregards font changes by purpose.

    So I'd say a design-decision is needed.

    Obviously Simon votes for making it more flexible.
    Others?

     
    • Simon Albrecht

      Simon Albrecht - 2016-11-12

      Well, so my vote would be, but I’d say it counts very little, since I have no experience at all using these easyHeads, nor do I know the reasoning behind wanting their size altered.
      Still, the analogy to normal note heads suggests that it would be more consistent and intuitive to have their size follow along, in spite of not fitting the staff lines.

       

      Last edit: Simon Albrecht 2016-11-12
    • Malte Meyn

      Malte Meyn - 2017-10-07

      Because grace notes don’t work well with current easyHeads (\grace and friends seem to override the font-size from -8 to -3 instead of -11) I second that.

      \version "2.19.65"
      
      {
        \easyHeadsOn
        g'4 \acciaccatura a'8 g'4
      }
      
       
  • Malte Meyn

    Malte Meyn - 2017-10-07

    easyHeads respect font-size/fontSize

    Easy note heads are now scaled correctly when the NoteHead size is
    changed by \override NoteHead.font-size = -3, \set fontSize = -3,
    \teeny, \grace etc.

    This is achieved by moving the responsibility of scaling the letters
    from the definition of \easyHeadsOn to the stencil and scaling the note
    heads/circles too.

    Also contains addition to regtest.

    http://codereview.appspot.com/329410043

     
    • Anonymous

      Anonymous - 2017-10-07

      This patch passes make, make check and a full make doc.

      Reg test diff attached.

       
  • David Kastrup

    David Kastrup - 2017-10-07

    Issue 4996/2: Make easyHeads correctly heed the fontSize context property

    This retains the previous default behavior by hard-coding the font-size offset
    of -8 into the stencil routine for easy noteheads.

    Issue 4996/1: Add regtest for scalable easy noteheads

    http://codereview.appspot.com/330500043

     
    • Anonymous

      Anonymous - 2017-10-07

      Passes make, make check and a full make doc.

      No reg test diff was generated - apart frm the 'normal' stuff.

       
      • David Kastrup

        David Kastrup - 2017-10-07

        Well, yes: new regtests are not included in the diff. If you want to check the difference, you need to check the first commit (which contains only the regtest) against the second (which has all other changes). Unfortunately, on Rietveld you don't get to see the two commits: you'd have to do that split manually.

        The regtest, as indicated by its version number, compiles with older versions, looking ugly.

         
  • David Kastrup

    David Kastrup - 2017-10-07
    • assigned_to: David Kastrup
    • Needs: -->
    • Type: --> Defect
     
  • Malte Meyn

    Malte Meyn - 2017-10-07

    Should I’ve added that I was working on a patch which I uploaded a few minutes later?

     

    Last edit: Malte Meyn 2017-10-07
    • David Kastrup

      David Kastrup - 2017-10-07

      "Malte Meyn" maltem@users.sf.net writes:

      Should I’ve added that I already had a patch which I uploaded a few
      minutes later?

      Aw shucks. Maybe mark yourself as owner and the issue as "Started"?

      I like my regtest better. Did not remember about make-fontsize-markup
      which also changes baseline-skip and word-space but I consider it
      unlikely we'd ever need them.

      Your version applies the fontsize change twice in different locations:
      not an efficiency problem since only one version will get called, but
      not as nice for code maintenance.

      So what are we going to do? Want to fix up your version with my regtest
      and possibly factor make-fontsize-markup into letter ?

      --
      David Kastrup

       
      • Malte Meyn

        Malte Meyn - 2017-10-07

        Aw shucks. Maybe mark yourself as owner and the issue as "Started"?

        Good to know, I’ll do that next time.

        So what are we going to do? Want to fix up your version with my regtest
        and possibly factor make-fontsize-markup into letter ?

        If I understand correctly it’s no problem for Phil (?) to use either of our patches. So I’d suggest to use yours, but maybe use make-fontsize-markup instead of an override.

         
        • Phil Holmes

          Phil Holmes - 2017-10-07

          James does the patches. I do GUB builds.

          --
          Phil Holmes

          ----- Original Message -----
          From: Malte Meyn
          To: [testlilyissues:issues]
          Sent: Saturday, October 07, 2017 3:35 PM
          Subject: [testlilyissues:issues] Re: #4996 Make easyHeads correctly heed the fontSize context property

          Aw shucks. Maybe mark yourself as owner and the issue as "Started"?
          

          Good to know, I’ll do that next time.

          So what are we going to do? Want to fix up your version with my regtest
          and possibly factor make-fontsize-markup into letter ?
          

          If I understand correctly it’s no problem for Phil (?) to use either of our patches. So I’d suggest to use yours, but maybe use make-fontsize-markup instead of an override.


          [issues:#4996] Make easyHeads correctly heed the fontSize context property

          Status: Started
          Created: Fri Nov 11, 2016 11:51 PM UTC by Simon Albrecht
          Last Updated: Sat Oct 07, 2017 02:30 PM UTC
          Owner: David Kastrup
          Attachments:

          a.. 4996.preview.png (5.6 kB; image/png)
          

          Unlike normal note heads, the note heads used after easyHeadsOn don’t correctly heed the fontSize context property, as altered by \huge and similar. The size of the letters in the note heads is changed indeed, but not the note heads themselves.

          \version "2.19.49"
          mus = {
          c' d' e' f'
          \easyHeadsOn
          c' d' e' f'
          \easyHeadsOff
          c' d' e' f'
          }
          <<
          \new Staff { \huge \mus }
          \new Staff { \teeny \mus }


          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/testlilyissues/issues/4996/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           
  • Anonymous

    Anonymous - 2017-10-07

    I'll test both anyway - no skin of my nose

     
  • David Kastrup

    David Kastrup - 2017-10-07
     
  • Anonymous

    Anonymous - 2017-10-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,7 @@
    +Use make-fontsize-markup
    +
    +http://codereview.appspot.com/330500043
    +
     Unlike normal note heads, the note heads used after `easyHeadsOn` don’t correctly heed the fontSize context property, as altered by `\huge` and similar. The size of the letters in the note heads is changed indeed, but not the note heads themselves.
    
     ~~~~
    
    • Needs: -->
    • Patch: new --> review
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2017-10-07

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2017-10-11
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-10-11

    Patch on countdown for Oct 14th

     
  • Anonymous

    Anonymous - 2017-10-14
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2017-10-14

    Patch counted down - please push

     
  • Anonymous

    Anonymous - 2017-10-17

    Patch counted down - please push

     
  • Anonymous

    Anonymous - 2017-10-17
    • labels: --> Fixed_2_21_0
    • status: Started --> Fixed
    • Patch: push -->
     
1 2 > >> (Page 1 of 2)
MongoDB Logo MongoDB