Jump to content

Changing the size of layout objects: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
The <code>font-size</code> property can be set directly, so that only certain layout objects are affected.
The <code>font-size</code> property can be set directly, so that only certain layout objects are affected.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=412
%% http://lsr.di.unimi.it/LSR/Item?id=412



Revision as of 18:53, 16 November 2025

The font-size property can be set directly, so that only certain layout objects are affected.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=412


\relative c'' {
  \set fontSize = #3
  c4.-> d8---3
  \override NoteHead.font-size = #-4
  c4.-> d8---3
  \override Script.font-size = #3
  c4.-> d8---3
}