Thank you, Timothy!

On Sat, 4 Jul 2026, Timothy Lanfear wrote:

> This code prints the values of left-margin-default (always 15mm) and
> left-margin-default-scaled (varies with the size of the paper). The scaled
> margins are always an exact number of mm so it looks like rounding to the
> nearest mm is happening somewhere.
>

Your code is very helpful.

On a related note, would it be easy to get the LilyPond Log to tell me what
the font size (in points) of a given markup in a given \fontsize is?

Per NR 8.2.2 Selecting font and font size
<https://lilypond.org/doc/v2.27/Documentation/notation/formatting-text#selecting-font-and-font-size>
I know that the font size depends on the staff height unless one is using
\abs-fontsize (which, per Kieren, is often a good idea!).

For example:

\version "2.27.1"

% #(set-global-staff-size 15.85)

\markup
  % \fontsize #0
  { Normal markup }

\markup
  \fontsize #-1.5
  { Smaller markup }

% Wish list item:
% Scheme code to go here that
% would print to the LilyPond log
% the point sizes of
% \normalsize (i.e., #0)
% and #-1.5 (or whatever argument
% I give to Scheme)

Reply via email to