On Tue, Feb 9, 2016 at 8:49 AM, Paul Morris [via Lilypond] < ml-node+s1069038n187046...@n5.nabble.com> wrote:
> > On Feb 9, 2016, at 10:12 AM, tisimst <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=187046&i=0>> wrote: > > > > Although microscopic, I can confirm this is true at the font level (at > > least at the default printed 20pt size, I didn't check the other optical > > variants). Relative to a 1000-em unit staff height (which is what the > fonts > > are designed to, center of bottom staff line to center of top staff > line), > > here are the dimensions causing the problem you are seeing: > > > > staff-space = 250-em > > staff line thickness = 25-em (i.e., 0.1 staff-space) > > solid notehead height = 276-em > > > > Now, here's the discrepancy. The distance between the bottom of a staff > > line to the top of the next staff line up, is 250+25 = 275-em. That > means > > that there is an overall difference in size of 1-em unit (at the 20pt > > printed size, this equates to 1/50pt = 0.00028in = 0.0071mm difference). > In > > other words, we are technically splitting hairs with this, but > nonetheless, > > it is a difference. The solid notehead is "too large" by 1/100pt on > either > > side. > > Interesting... Here’s some code for experimenting with this. It scales > notehead stencils. A scaling of 250/276 should make the solid notes equal > to one staff-space. (Or should it be 275/276 to make it the "distance > between the bottom of a staff line to the top of the next staff line up”?) > > -Paul > > > \version "2.19.36" > > example = \relative { > c' d e f g a b c > } > > { > \example > } > > { > \override NoteHead.stencil = > #(lambda (grob) > (ly:stencil-scale > (ly:note-head::print grob) > 250/276 250/276)) > > \example > } > Well, that depends on where you want the top/bottom of the notehead to touch the staff-lines: - 275/276 - If you want it to have the same vertical extent as the two touch staff lines. - 250/276 - If you want it to touch the centers of the staff lines - 225/276 - If you wanted them to fit perfectly withing the staff lines HTH, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Noteheads-slightly-too-large-tp184659p187048.html Sent from the Bugs mailing list archive at Nabble.com. _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond