Re: Stacked tensions for chord names

2021-03-02 Thread Robin Bannister
Aaron Hill wrote: [...] no-bs = #'(baseline-skip . 0) [...] Was there intention behind that variable name? ;-) The official reason: very short, to avoid any wrapping of code. It just happened - while culling hyphens - and then seemed fun. Cheers, Robin

Re: Stacked tensions for chord names

2021-03-01 Thread Aaron Hill
On 2021-03-01 7:13 am, Robin Bannister wrote: And if you are fed up with baseline-skip you can set it to 0, and it then stays 0 whatever the font-size. [...] no-bs = #'(baseline-skip . 0) [...] Was there intention behind that variable name? ;-) -- Aaron Hill

Re: Stacked tensions for chord names

2021-03-01 Thread Robin Bannister
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

Re: Stacked tensions for chord names

2021-03-01 Thread Valentin Petzel
Hello Robin, thank you for your reply. The problem here is that \fontsize is never called. The font-size is entirely handled by the grob callback ly:text-interface::print. My problem is that at Position where the markup is defined the fontsize is in fact not known. I’ve solved the issue for

Re: Stacked tensions for chord names

2021-03-01 Thread Robin Bannister
Valentin Petzel wrote: Does anyone of you have an idea how one can set baseline-skip to be proportional to the font-size? Well, when the markup command \fontsize changes the font size, it changes the baseline-skip too, to keep it proportional. But this means that if you are overriding the

Stacked tensions for chord names

2021-02-28 Thread Valentin Petzel
Hello! I’ve done a small modification to achieve stacked tensions for ChordNames. My problem is now that the baseline-skip of the used columns need to change depending on the font size. Does anyone of you have an idea how one can set baseline-skip to be proportional to the font-size? Cheers,