Jump to content

White text on black background: 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
m New category
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
[[Category:Text]]
[[Category:Text]]
[[Category:Really cool]]
[[Category:Really cool]]
[[Category:Snippet]]

Latest revision as of 23:24, 21 November 2025

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"
  }
}