X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Ftablature.scm;h=97f688c1d1e868d4242d3a085ab9d4856e3fddf3;hb=4d405ef96a8a62771d7d9a283ff5369a772e89d8;hp=87e5b300af90c129b3a6f50d4ef45b77db1a47fc;hpb=c5c06029fc0b17266d36b40255c631ac1d31a370;p=lilypond.git diff --git a/scm/tablature.scm b/scm/tablature.scm index 87e5b300af..97f688c1d1 100644 --- a/scm/tablature.scm +++ b/scm/tablature.scm @@ -235,7 +235,7 @@ ;; a callback for custom fret labels (define ((tab-note-head::print-custom-fret-label fret) grob) - (ly:grob-set-property! grob 'text fret) + (ly:grob-set-property! grob 'text (make-vcenter-markup fret)) (tab-note-head::print grob)) (export tab-note-head::print-custom-fret-label) @@ -266,9 +266,7 @@ (offset-factor (assoc-get 'head-offset details 3/5)) (column-offset (* offset-factor (interval-length - (ly:stencil-extent - (grob-interpret-markup grob "8") - X))))) + (ly:stencil-extent ref-grob X))))) (if (is-harmonic? grob) (set! output-grob (harmonic-proc output-grob @@ -282,9 +280,10 @@ cautionary-width cautionary-angularity cautionary-padding))) - (ly:stencil-translate-axis (centered-stencil output-grob) - column-offset - X))) + (ly:stencil-translate-axis + (ly:stencil-aligned-to output-grob X CENTER) + column-offset + X))) ;; Harmonic definitions