]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/non-empty-text.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / non-empty-text.ly
index d3eee8bedce9bc19272745a0274cd9f6f97b47be..a3ba0d92a69b0c8877f518c51aaf810892d5e4b5 100644 (file)
@@ -1,17 +1,22 @@
-\version "1.3.146"
+\version "2.16.0"
 
 \header{
-texidoc="
-Text is set with empty horizontal dimensions.  The boolean property
-textNonEmpty is used to respect the horizontal size of text.
-"
+  texidoc = "By default, text is set with empty horizontal dimensions.
+The property @code{extra-spacing-width} in @code{TextScript} is used
+to control the horizontal size of text."
 }
-\score { \notes {
-\property Voice.TextScript \override #'no-spacing-rods = ##f
-c4_"very wide and long text" c4
+
+\layout {
+  line-width = 3.0\cm
 }
 
-\paper {
-  linewidth  = -1.0
-  }
+\relative c''{
+  %% \textLengthOff
+  %% short for \override TextScript #'extra-spacing-width = #'(+inf.0 . -inf.0)
+  %%           \override TextScript #'extra-spacing-height = #'(0 . 0)
+  c2_"very wide and long text" c | \break
+  %% short for \override TextScript #'extra-spacing-width = #'(0 . 0)
+  %%           \override TextScript #'extra-spacing-height = #'(-inf.0 . +inf.0)
+  \textLengthOn
+  c2_"very wide and long text" c
 }