Menu

#5231 Fix regression introduced with 5122 "Fix not scaling stem ..."

Fixed
Enhancement
2019-01-27
2017-11-05
No

Fix regression introduced with 5122 "Fix not scaling stem ..."

commit eee677c480c78d58a5215e246575aa94ba2d1897
only took text-font-size from current layout into account.
Now text-font-size from $defaultpaper is respected as well.
As a result note-by-number scales now properly for changes of
set-global-staff-size, layout-set-staff-size and markup-fontsize.

http://codereview.appspot.com/337880043

Discussion

  • Anonymous

    Anonymous - 2017-11-05
    • Description has changed:

    Diff:

    
    
    • Needs: -->
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2017-11-05

    Passes make, make check and a full make doc.

     
  • Anonymous

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

    Anonymous - 2017-11-07

    Patch on countdown for Nov 10th.

     
  • Anonymous

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

    Anonymous - 2017-11-10

    Patch counted down - please push.

     
  • Thomas Morley

    Thomas Morley - 2017-11-11
    • labels: --> Fixed_2_21_0
    • status: Started --> Fixed
    • Patch: push -->
     
  • Thomas Morley

    Thomas Morley - 2017-11-11

    pushed to staging as:

    commit a59947cc3f1040a78f5ccef8d87efb2eee946097
    Author: Thomas Morley thomasmorley65@gmail.com
    Date: Sun Nov 5 15:36:03 2017 +0100

    Issue 5231 Fix regression introduced with 5122 "Fix not scaling stem ..."
    
    commit eee677c480c78d58a5215e246575aa94ba2d1897
    only took text-font-size from current layout into account.
    Now text-font-size from $defaultpaper is respected as well.
    As a result note-by-number scales now properly for changes of
    set-global-staff-size, layout-set-staff-size and markup-fontsize.
    
     
  • Ben Rudiak-Gould

    Unfortunately it seems the stem scaling is still not correct in all cases:

    \version "2.19.82"
    \book {
      \paper { #(layout-set-staff-size 40) }
      { \tempo 8=88 c'8 }
    }
    

    The stem in the markup is twice as large (horizontally and vertically) as it should be. While fiddling around with that example I also noticed that set-global-staff-size has the opposite effect, making the stem too small if you set a size larger than 20:

    \version "2.19.82"
    \book {
      #(set-global-staff-size 40)
      { \tempo 8=88 c'8 }
    }
    

    set-global-staff-size doesn't work inside \book anyway so I suppose it doesn't matter, but I'd still expect the stem size to be consistent with everything else in this example if it was being calculated correctly.

    Since everything else, including note heads and flags, staff and ledger lines, stems of ordinary non-markup notes, etc., scales consistently, I'd think there must be already working code somewhere that could be copy-pasted into note-by-number.