Jump to content

Changing the size of layout objects: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
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


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
}