Jump to content

Changing the size of layout objects: Difference between revisions

From LilyPond wiki
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
m New category
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:24, 21 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
}