[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stacked tensions for chord names
From: |
Robin Bannister |
Subject: |
Re: Stacked tensions for chord names |
Date: |
Mon, 1 Mar 2021 16:13:31 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Valentin Petzel wrote:
My problem is that at
Position where the markup is defined the fontsize is in fact not known. I’ve
solved the issue for the time being by using a on-the-fly call to modify the
baseline-skip.
You can fetch the font-size with #:properties ((font-size 0))
as done in \translate-scaled for example.
And if you are fed up with baseline-skip you can set it to 0,
and it then stays 0 whatever the font-size.
In your case it would suffice to insert vertical gaps because
your column doesn't need to skip exactly like nearby columns do.
\version "2.20.0"
vshim = \markup \combine \null \translate-scaled #'(0 . -0.2) \null
no-bs = #'(baseline-skip . 0)
\markup \line {
\column { A B C 6 }
\override #no-bs \column { A \vshim B \vshim C \vshim 7 }
\fontsize #-6 "..."
\fontsize #-6 \override #no-bs \column { A \vshim B \vshim C \vshim 8 }
\override #no-bs \fontsize #-6 \column { A \vshim B \vshim C \vshim 9 }
}
Cheers,
Robin
vshim.png
Description: PNG image