bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Note stem centered if font.name changed in EasyHeads


From: Viktor Mastoridis
Subject: Re: Note stem centered if font.name changed in EasyHeads
Date: Fri, 2 Apr 2021 14:05:24 -0700

Thank you very much, Jean.
The hack does the job for now.

-- 
📱Viktor.Mastoridis.co.uk

-----Original Message-----
Re: Note stem centered if font.name changed in EasyHeads
From: Jean Abou Samra <jean@abou-samra.fr>
To: Viktor Mastoridis <viktor.mastoridis@gmail.com>,lilypond-user <
lilypond-user@gnu.org>
Cc: <bug-lilypond@gnu.org>
Friday, 2 April 2021 at 11:18

Le 02/04/2021 à 12:03, Viktor Mastoridis a écrit :

\version "2.20.0"
\relative c'' {
  \easyHeadsOn
  \override NoteHead.font-name = #"Ubuntu"
  a b c d}

Hello,

If I try to change the font.name in EasyHeads, the stem gets to the middle
of the note-head (see attached image).
And Lilypond says: "none of note heads `noteheads.s' or `noteheads.d' found"

Any clues?


Hello,

This qualifies as a bug -- I am forwarding your report to the bug list.

Here is a workaround:

\version "2.22.0"

\relative c'' {
  \easyHeadsOn
  \override NoteHead.font-name = "Ubuntu"
  \override NoteHead.stem-attachment = #'(1.05 . 0)
  a b c d
}

Technically, the problem is that ly:note-head::calc-stem-attachment
uses the glyph that would be printed without \easyHeadsOn, and
the font-size override confuses that code since note heads require
a music font.

Best,
Jean


reply via email to

[Prev in Thread] Current Thread [Next in Thread]