Jump to content

White text on black background

From LilyPond wiki
Revision as of 18:55, 16 November 2025 by Jean Abou Samra (talk | contribs) (Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series)

If you want to print some white text on black background, here's the trick:

\version "2.24"

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

{
  g1^\markup { 
    \combine 
    \filled-box #'(-.3 . 6.8) #'(-.3 . 1.8) #0 
    \with-color #white 
    "White"
  }
}