1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
14 @lilypondfile[quote]{text-headword.ly}
16 This section explains how to include text (with various
17 formatting) in music scores.
20 Some text elements that are not dealt with here are discussed in other
21 specific sections: @ref{Vocal music}, @ref{Titles and headers}.
29 @cindex Text, other languages
30 @warning{To write accented and special text (such as characters
31 from other languages), simply insert the characters directly into
32 the LilyPond file. The file must be saved as UTF-8. For more
33 information, see @ref{Text encoding}.}
36 @subsection Writing text
38 This section introduces different ways of adding text to a score.
49 @subsubsection Text scripts
52 @cindex text items, non-empty
53 @cindex non-empty texts
56 Simple @qq{quoted text} indications may be added
57 to a score, as demonstrated in the following example.
58 Such indications may be manually placed
59 above or below the staff, using the
60 syntax described in @ref{Direction and
63 @lilypond[quote,fragment,ragged-right,verbatim,relative=1]
64 d8^"pizz." e f g a4-"scherz." f
67 This syntax is actually a shorthand; more complex text
68 formatting may be added to a note by explicitly using a
69 @code{\markup} block, as described in @ref{Formatting text}.
71 @lilypond[quote,fragment,ragged-right,verbatim,relative=1]
72 d8^\markup { \italic pizz. } e f g
73 a4_\markup { \tiny scherz. \bold molto } f
76 By default, text indications do not influence the note spacing.
77 However, their widths can be taken into account:
78 in the following example, the first text string does not affect
79 spacing, whereas the second one does.
81 @lilypond[quote,fragment,ragged-right,verbatim,relative=1]
89 @funindex \textLengthOn
91 @funindex \textLengthOff
98 @ref{Formatting text},
99 @ref{Direction and placement}.
105 @rinternals{TextScript}.
109 Checking to make sure that text scripts and lyrics are within the
110 margins is a relatively large computational task. To speed up
111 processing, LilyPond does not perform such calculations by
112 default; to enable it, use
115 \override Score.PaperColumn #'keep-inside-line = ##t
120 @subsubsection Text spanners
122 @cindex Text spanners
124 Some performance indications, e.g., @notation{rallentando} or
125 @notation{accelerando}, are written as text and are extended over
126 multiple notes with dotted lines.
127 Such objects, called @qq{spanners}, may be created
128 from one note to another using the following syntax:
130 @lilypond[verbatim,quote,ragged-right,fragment,relative=2]
131 \override TextSpanner #'bound-details #'left #'text = "rit."
137 The string to be printed is set through
138 object properties. By default it is printed in italic characters,
139 but different formatting can be obtained using
140 @code{\markup} blocks, as described in @ref{Formatting text}.
142 @lilypond[quote,ragged-right,fragment,relative=2,verbatim]
143 \override TextSpanner #'bound-details #'left #'text =
144 \markup { \upright "rit." }
149 The line style, as well as the text string, can be defined as an
150 object property. This syntax is described in @ref{Line styles}.
154 @funindex textSpannerUp
155 @code{\textSpannerUp},
156 @funindex textSpannerDown
157 @code{\textSpannerDown},
158 @funindex textSpannerNeutral
159 @code{\textSpannerNeutral}
171 @rinternals{TextSpanner}.
175 @subsubsection Text marks
177 @cindex coda on bar line
178 @cindex segno on bar line
179 @cindex fermata on bar line
180 @cindex bar lines, symbols on
183 Various text elements may be added to a score using
184 the syntax described in @ref{Rehearsal marks}:
186 @c \mark needs to be placed on a separate line (it's not
187 @c attached to an object like \markup is). -vv
189 @lilypond[verbatim,quote,ragged-right,fragment,relative=2]
195 This syntax makes it possible to put any text on a bar line;
196 more complex text formatting may be added using a @code{\markup}
197 block, as described in @ref{Formatting text}:
199 @lilypond[fragment,quote,ragged-right,verbatim,relative=1]
201 \mark \markup { \italic { colla parte } }
207 This syntax also allows to print special signs, like coda, segno
208 or fermata, by specifying the appropriate symbol name as explained in
209 @ref{Music notation inside markup}:
211 @lilypond[fragment,quote,ragged-right,verbatim,relative=1]
213 \mark \markup { \musicglyph #"scripts.ufermata" }
218 Such objects are only typeset above the top staff of the score; depending on
219 whether they are specified at the end or the middle of a bar, they
220 can be placed above the bar line or between notes. When specified at the
221 beginning of a score or at a line break, marks will be printed at
222 the beginning of the line (the next line, in case of a line break).
224 @lilypond[fragment,quote,ragged-right,verbatim,relative=2]
234 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
235 {printing-marks-at-the-end-of-a-line-or-a-score.ly}
237 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
238 {aligning-marks-with-various-notation-objects.ly}
240 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
241 {printing-marks-on-every-staff.ly}
246 @ref{Rehearsal marks},
247 @ref{Formatting text},
248 @ref{Music notation inside markup},
255 @rinternals{RehearsalMark}.
258 @c To be removed when Issue 69 in the tracker gets fixed. -vv
260 If a mark is entered at the end of the last bar of the score (where
261 there is no next line), then the mark will not be printed at
265 @subsubsection Separate text
267 @cindex separate text
268 @cindex standalone text
269 @cindex top-level text
270 @cindex text, standalone
273 A @code{\markup} block can exist by itself, outside of any
274 any @code{\score} block, as a @qq{top-level
275 expression}. This syntax is described in @ref{File structure}.
277 @lilypond[verbatim,quote]
279 Tomorrow, and tomorrow, and tomorrow...
284 This allows printing text separately
285 from the music, which is particularly
286 useful when the input file contains
287 several music pieces, as described in
288 @ref{Multiple scores in a book}.
290 @lilypond[quote,ragged-right,verbatim]
295 Tomorrow, and tomorrow, and tomorrow...
302 Using a specific syntax, text blocks can be spread
303 over multiple pages, making it possible to print
304 text documents or books (and therefore to
305 use LilyPond as a word processor). This syntax is described in
306 @ref{Multi-page markup}.
311 @funindex \markuplines
317 TODO: add convenient snippets in input/new -vv
322 Notation Reference: @ref{Formatting text},
323 @ref{File structure},
324 @ref{Multiple scores in a book},
325 @ref{Multi-page markup}.
330 Internals Reference: @rinternals{TextScript}.
333 @node Formatting text
334 @subsection Formatting text
336 This section presents basic and advanced text formatting,
337 using the @code{\markup} mode specific syntax.
340 * Text markup introduction::
341 * Selecting font and font size::
343 * Graphic notation inside markup::
344 * Music notation inside markup::
345 * Multi-page markup::
348 @node Text markup introduction
349 @subsubsection Text markup introduction
357 A @code{\markup} block is used to typeset text with an extensible
358 specific syntax called @qq{markup mode}.
360 @cindex markup expressions
361 @cindex markup syntax
363 The markup syntax is similar to LilyPond's usual syntax: a
364 @code{\markup} expression is enclosed in curly braces @code{@{
365 @dots{} @}}. A single word is regarded as a minimal expression,
366 and therefore does not need to be enclosed with braces.
368 Unlike simple @qq{quoted text} indications, @code{\markup} blocks
369 may contain nested expressions or specific commands,
370 entered using the backslash @code{\} character.
371 Such commands only affect the first following expression.
373 @lilypond[quote,verbatim,fragment,relative=1]
375 a2^\markup { poco \italic più forte }
377 d2_\markup { \italic "string. assai" }
379 b1^\markup { \bold { molto \italic agitato } }
383 @cindex special characters in markup mode
384 @cindex markup mode, special characters
385 @cindex reserved characters, printing
386 @cindex printing special characters
387 @cindex quoted text in markup mode
389 A @code{\markup} block may also contain quoted text strings.
390 Such strings are treated as minimal text expressions, and
391 therefore any markup command or special character (such as
392 @code{\} and @code{#}) will be printed verbatim without affecting
393 the formatting of the text. This syntax even allows to print
394 double quotation marks, by preceding them with backslashes
396 @lilypond[quote,verbatim,fragment,relative=1]
397 d1^"\italic markup..."
398 d_\markup \italic "... prints \"italic\" letters!"
402 The way markup expressions are defined affects
403 how these expressions will be stacked, centered and aligned
404 when using the commands explained in @ref{Text alignment}.
406 @lilypond[quote,verbatim,fragment,relative=1]
407 c1^\markup { \column { a bbbb \line { c d } } }
408 c1^\markup { \center-column { a bbbb c } }
409 c1^\markup { \line { a b c } }
412 Lists of words that are not enclosed with double quotes
413 or preceded by a command are not treated as a distinct
414 expression. In the following example, the first two
415 @code{\markup} expressions are equivalent:
417 @lilypond[quote,verbatim,fragment,relative=1]
418 c1^\markup { \center-column { a bbb c } }
419 c1^\markup { \center-column { a { bbb c } } }
420 c1^\markup { \center-column { a \line { bbb c } } }
424 Markups can be stored in variables. Such variables may be
425 directly attached to notes:
427 @lilypond[quote,verbatim]
428 allegro = \markup { \bold \large Allegro }
438 An exhaustive list of @code{\markup}-specific commands can be found in
439 @ref{Text markup commands}.
445 @ref{Text markup commands}.
451 @rinternals{TextScript}.
454 @file{scm/@/markup@/.scm}.
459 Syntax errors for markup mode can be confusing.
462 @node Selecting font and font size
463 @subsubsection Selecting font and font size
465 @cindex font switching
470 Basic font switching is supported in markup mode:
472 @lilypond[quote,verbatim,relative=2]
476 \italic { non troppo \underline Vivo }
479 d,_\markup { \italic quasi \smallCaps Tromba }
492 The size of the characters can also be altered in different ways:
495 the font size can be defined to an absolute value,
498 predefined commands allow to easily select standard sizes,
501 the font size can also be changed relatively to its previous value.
505 The following example demonstrates these three methods:
507 @lilypond[quote,verbatim,relative=2]
509 f1^\markup { \fontsize #5 Sinfonia }
518 \magnify #0.6 { e sentimento } )
529 Text may be printed as subscript or superscript. By default
530 these are printed in a smaller size, but a normal size can be used as well:
532 @lilypond[quote,verbatim]
535 \line { 1 \super st movement }
536 \line { 1 \normal-size-super st movement
537 \sub { (part two) } }
542 @cindex font families
544 The markup mode provides an easy way to select alternate
545 font families. The default serif font, of roman type, is
546 automatically selected unless specified otherwise: on the
547 last line of the following example, there is no difference
548 between the first and the second word.
550 @lilypond[quote,verbatim]
553 \line { Act \number 1 }
554 \line { \sans { Scene I. } }
555 \line { \typewriter { Verona. An open place. } }
556 \line { Enter \roman Valentine and Proteus. }
562 Some of these font families, used for specific items
563 such as numbers or dynamics, do not provide all
564 characters, as mentioned in @ref{New dynamic marks} and
565 @ref{Manual repeat marks}.
567 @c \concat is actually documented in Align (it is not
568 @c a font-switching command). But we need it here. -vv
570 When used inside a word, some font-switching or formatting
571 commands may produce an unwanted blank space. This can
572 easily be solved by concatenating the text elements together:
574 @lilypond[quote,verbatim]
578 \concat { 1 \super st }
582 \concat { \dynamic p , }
583 \italic { con dolce espressione }
589 An exhaustive list of font-switching, font-size
590 and font-families related commands can be found in @ref{Font}.
592 Defining custom font sets is also possible, as explained in
600 @funindex \normalsize
613 @ref{New dynamic marks},
614 @ref{Manual repeat marks},
621 @rinternals{TextScript}.
624 @file{scm/@/define@/-markup@/-commands@/.scm}.
628 @subsubsection Text alignment
630 @cindex text, aligning
631 @cindex aligning text
633 This subsection discusses how to place text in markup mode,
634 inside a @code{\markup} block. Markup objects can also
635 be moved as a whole, using the syntax described in
636 @rlearning{Moving objects}.
638 @c Padding commands should be mentioned on this page, but
639 @c most of these require \box to be more clearly illustrated. -vv
641 @cindex text, horizontal alignment
642 @cindex horizontal text alignment
643 @funindex \left-align
644 @funindex \center-align
645 @funindex \right-align
647 Markup objects may be aligned in different ways. By default,
648 a text indication is aligned on its left edge: in the following
649 example, there is no difference
650 between the first and the second markup.
652 @lilypond[quote,verbatim,fragment,relative=1]
655 a,-\markup { \left-align poco }
657 a,-\markup { \center-align { poco } }
659 a,-\markup { \right-align poco }
664 Horizontal alignment may be fine-tuned
665 using a numeric value:
667 @lilypond[quote,verbatim,fragment,relative=1]
668 a1-\markup { \halign #-1 poco }
670 a,-\markup { \halign #0 poco }
672 a,-\markup { \halign #0.5 poco }
674 a,-\markup { \halign #2 poco }
678 Some objects may have alignment procedures of their own,
679 and therefore are not affected by these commands. It is
680 possible to move such markup objects as a whole, as shown
681 for instance in @ref{Text marks},
683 @cindex text, vertical alignment
684 @cindex vertical text alignment
688 Vertical alignment is a bit more complex. As stated above,
689 markup objects can be moved as a whole; however, it is also
690 possible to move specific elements inside a markup block.
691 In this case, the element to be moved needs to be preceded
692 with an @emph{anchor point}, that can be another markup element
693 or an invisible object. The following example demonstrates these
694 two possibilities; the last markup in this example has no anchor
695 point, and therefore is not moved.
697 @lilypond[quote,verbatim,fragment,relative=1]
700 \raise #2 { Scène 1 }
705 \lower #4 \bold { Très modéré }
709 \raise #4 \italic { Une forêt. }
714 @funindex \general-align
716 @funindex \translate-scaled
718 Some commands can affect both the horizontal and vertical
719 alignment of text objects in markup mode. Any object
720 affected by these commands must be preceded with an
723 @lilypond[quote,verbatim,fragment,relative=1]
726 \translate #'(-1 . 2) "Scène 1"
731 \general-align #Y #3.2 \bold "Très modéré"
736 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
742 @funindex \center-column
744 @cindex multi-line markup
745 @cindex multi-line text
746 @cindex columns, text
748 A markup object may include several lines of text.
749 In the following example, each element or expression
750 is placed on its own line, either left-aligned or centered:
752 @lilypond[quote,verbatim]
770 @cindex centering text on the page
772 Similarly, a list of elements or expressions may be
773 spread to fill the entire horizontal line width (if there
774 is only one element, it will be centered on the page).
775 These expressions can, in turn, include multi-line text
776 or any other markup expression:
778 @lilypond[quote,verbatim]
781 \line { William S. Gilbert }
783 \huge \smallCaps "The Mikado"
785 \smallCaps "The Town of Titipu"
787 \line { Sir Arthur Sullivan }
798 @cindex wordwrapped text
799 @cindex justified text
801 Long text indications can also be automatically wrapped
802 accordingly to the given line width. These will be
803 either left-aligned or justified, as shown in
804 the following example.
806 @lilypond[quote,verbatim]
809 \line \smallCaps { La vida breve }
810 \line \bold { Acto I }
812 (La escena representa el corral de una casa de
813 gitanos en el AlbaicÃn de Granada. Al fondo una
814 puerta por la que se vé el negro interior de
815 una Fragua, iluminado por los rojos resplandores
820 \line \bold { Acto II }
821 \override #'(line-width . 50)
823 (Calle de Granada. Fachada de la casa de Carmela
824 y su hermano Manuel con grandes ventanas abiertas
825 a través de las que se ve el patio
826 donde se celebra una alegre fiesta)
832 An exhaustive list of text alignment commands
833 can be found in @ref{Align}.
837 @rlearning{Moving objects}.
846 Internals Reference: @rinternals{TextScript}.
849 @file{scm/@/define@/-markup@/-commands@/.scm}.
852 @node Graphic notation inside markup
853 @subsubsection Graphic notation inside markup
855 @cindex graphics, embedding
856 @cindex drawing graphic objects
858 Various graphic objects may be added to a score,
859 using specific markup commands.
863 @funindex \rounded-box
867 @cindex decorating text
870 Some markup commands allow to decorate text elements
871 with graphics, as demonstrated in the following example.
873 @lilypond[quote,verbatim]
882 \bracket "1866 - 1925"
885 \rounded-box \bold Prelude
890 @funindex \pad-markup
892 @funindex \pad-to-box
893 @funindex \pad-around
895 @cindex padding around text
898 Some commands may require to increase the padding around
899 the text: this is achieved with some specific commands
900 exhaustively described in @ref{Align}.
902 @lilypond[quote,verbatim]
905 \box "Charles Ives (1874 - 1954)"
907 \box \pad-markup #2 "THE UNANSWERED QUESTION"
908 \box \pad-x #8 "A Cosmic Landscape"
915 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
916 \bold "Largo to Presto"
919 "String quartet keeps very even time,
920 Flute quartet keeps very uneven time."
925 @funindex \draw-circle
926 @funindex \filled-box
929 @funindex \arrow-head
931 @cindex graphic notation
932 @cindex symbols, non-musical
934 Other graphic elements or symbols may be printed
935 without requiring any text. As with any markup
936 expression, such objects can be combined together:
938 @lilypond[quote,verbatim]
941 \draw-circle #4 #0.4 ##f
942 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
949 \arrow-head #Y #DOWN ##f
955 @funindex \postscript
957 @cindex embedded graphics
958 @cindex images, embedding
959 @cindex graphics, embedding
962 Advanced graphic features include the ability to
963 include external image files converted to the
964 Encapsulated PostScript format (@emph{eps}), or
965 to directly embed graphics into the input file,
966 using native PostScript code. In such a case, it
967 may be useful to explicitely specify the size of the
968 drawing, as demonstrated below:
970 @lilypond[quote,verbatim,fragment,relative=1]
973 \epsfile #X #10 #"./Documents/git/Documentation/user/context-example.eps"
974 \with-dimensions #'(0 . 6) #'(0 . 10)
990 An exhaustive list of graphics-specific commands
991 can be found in @ref{Graphic}.
996 @ref{Editorial annotations}.
1001 Internals Reference: @rinternals{TextScript}.
1004 @file{scm/@/define@/-markup@/-commands@/.scm},
1005 @file{scm/@/stencil@/.scm}.
1007 @node Music notation inside markup
1008 @subsubsection Music notation inside markup
1010 Various musical notation elements may be added
1011 to a score, inside a markup object.
1013 Notes and accidentals can be entered using specific
1016 @lilypond[quote,verbatim,fragment,relative=2]
1020 \note-by-number #1 #1 #1.5
1023 \natural \semiflat \flat
1024 \sesquiflat \doubleflat
1028 \natural \semisharp \sharp
1029 \sesquisharp \doublesharp
1034 Other notation objects may also be printed
1037 @lilypond[quote,verbatim,fragment,relative=1]
1044 fis_\markup { \dynamic rf }
1055 More generally, any available musical symbol may be
1056 included separately in a markup object, as demonstrated
1057 below; an exhaustive list of these symbols and their
1058 names can be found in @ref{The Feta font}.
1060 @lilypond[quote,verbatim,fragment,relative=2]
1062 c'^\markup { \musicglyph #"eight" }
1064 c,8._\markup { \musicglyph #"clefs.G_change" }
1066 c2^\markup { \musicglyph #"timesig.neomensural94" }
1068 @c TODO: add \lookup here? -vv
1071 Another way of printing non-text glyphs is described
1072 in @ref{Fonts explained}.
1074 The markup mode also supports diagrams for specific
1077 @lilypond[quote,verbatim,fragment,relative=2]
1079 \fret-diagram-terse #"x;x;o;2;3;2;"
1082 \harp-pedal #"^-v|--ov^"
1087 \musicglyph #"accordion.accDiscant"
1089 \raise #0.5 \musicglyph #"accordion.accDot"
1090 \raise #1.5 \musicglyph #"accordion.accDot"
1094 @c The accordion diagram is actually taken from a snippet.
1097 Such diagrams are documented in @ref{Instrument Specific Markup}.
1099 A whole score can even be nested inside a markup object.
1100 In such a case, the nested @code{\score} block must
1101 contain a @code{\layout} block, as demonstrated here:
1103 @lilypond[quote,verbatim,fragment,relative=1]
1106 \relative { c4 d e f }
1114 An exhaustive list of music notation related commands can be
1115 found in @ref{Music}.
1120 @ref{The Feta font},
1121 @ref{Fonts explained}.
1126 Internals Reference: @rinternals{TextScript}.
1129 @file{scm/@/define@/-markup@/-commands@/.scm},
1130 @file{scm/@/fret@/-diagrams@/.scm},
1131 @file{scm/@/harp@/-pedals@/.scm}.
1133 @node Multi-page markup
1134 @subsubsection Multi-page markup
1136 Although standard markup objects are not breakable, a
1137 specific syntax allows to enter lines of text that can
1138 spread over multiple pages:
1140 @lilypond[quote,verbatim]
1143 A very long text of justified lines.
1147 An other very long paragraph.
1154 This specific syntax accepts a list of markups, that can be
1157 the result of a markup list command,
1161 a list of markup lists.
1164 An exhaustive list of markup list commands can be found in
1165 @ref{Text markup list commands}.
1169 @ref{Text markup list commands},
1170 @ref{New markup list command definition}.
1175 Internals Reference: @rinternals{TextScript}.
1178 @file{scm/@/define@/-markup@/-commands@/.scm}.
1181 @funindex \markuplines
1188 This section presents the way fonts are handled,
1189 and how they may be changed in scores.
1193 * Single entry fonts::
1194 * Entire document fonts::
1197 @node Fonts explained
1198 @subsubsection Fonts explained
1201 @cindex fonts, explained
1202 @funindex font-interface
1204 Fonts are handled through several libraries.
1205 FontConfig is used to detect available fonts on the system;
1206 the selected fonts are rendered using Pango.
1208 Music notation fonts can be described as a set of
1209 specific glyphs, ordered in several families.
1210 The following syntax allows to directly use various
1211 LilyPond @code{feta} non-text fonts in markup mode:
1213 @lilypond[quote,verbatim,fragment,relative=2]
1216 \override #'(font-encoding . fetaBraces)
1218 \override #'(font-encoding . fetaNumber)
1220 \override #'(font-encoding . fetaDynamic)
1222 \override #'(font-encoding . fetaMusic)
1223 \lookup #"noteheads.s0petrucci"
1229 A simpler, but more limited syntax is also described in
1230 @ref{Music notation inside markup}.
1232 Three families of text fonts are made available: the
1233 @emph{roman} (serif) font, that defaults to New Century
1234 Schoolbook, the @emph{sans} font and the monospaced
1235 @emph{typewriter} font -- these last two families are
1236 determined by the Pango installation.
1238 Each family may include different shapes and series.
1239 The following example demonstrates the ability to select
1240 alternate families, shapes, series and sizes:
1242 @lilypond[quote,verbatim,fragment,relative=2]
1243 \override Score.RehearsalMark #'font-family = #'typewriter
1244 \mark \markup "Ouverture"
1246 \override Voice.TextScript #'font-shape = #'italic
1247 \override Voice.TextScript #'font-series = #'bold
1248 d''2.^\markup "Allegro"
1253 A similar syntax may be used in markup mode, however in this case
1254 it is preferable to use the simpler syntax explained in
1255 @ref{Selecting font and font size}:
1257 @lilypond[quote,verbatim]
1261 \override #'(font-shape . italic)
1262 \override #'(font-size . 4)
1266 \override #'(font-family . typewriter)
1268 \override #'(font-series . bold)
1272 \override #'(font-family . sans)
1280 @c FIXME: This needs an example -vv
1282 The size of the font may be set with the @code{font-size}
1283 property. The resulting size is taken relative to the
1284 @code{text-font-size} as defined in the @code{\paper} block.
1287 Although it is easy to switch between preconfigured fonts,
1288 it is also possible to use other fonts, as explained in the
1289 following sections: @ref{Single entry fonts} and
1290 @ref{Entire document fonts}.
1294 @ref{The Feta font},
1295 @ref{Music notation inside markup},
1296 @ref{Selecting font and font size},
1299 @node Single entry fonts
1300 @subsubsection Single entry fonts
1302 Any font that is installed on the operating system and recognized
1303 by FontConfig may be used in a score, using the following syntax:
1305 @lilypond[quote,verbatim,fragment,relative=1]
1306 \override Staff.TimeSignature #'font-name = #"Charter"
1307 \override Staff.TimeSignature #'font-size = #2
1311 \override #'(font-name . "Vera Bold")
1316 @funindex show-available-fonts
1318 The following command displays a list of all available fonts
1319 on the operating system:
1322 lilypond -dshow-available-fonts x
1326 The last argument of the command can be anything, but has to be
1331 @ref{Fonts explained},
1332 @ref{Entire document fonts}.
1338 @file{lily/@/font@/-config@/-scheme@/.cc}.
1340 @node Entire document fonts
1341 @subsubsection Entire document fonts
1344 It is possible to change the default font families for the
1345 entire document. In such a case, the following syntax has
1346 to be used, by providing three font families that will be
1347 respectively used as @emph{roman}, @emph{sans} and @emph{typewriter}
1348 fonts, as explained in @ref{Fonts explained}.
1350 @cindex font families, setting
1351 @funindex make-pango-font-tree
1353 @lilypond[verbatim,quote]
1357 (make-pango-font-tree "Times New Roman"
1360 (/ myStaffSize 20)))
1367 \typewriter typewriter. }
1371 @c we don't do Helvetica / Courier, since GS incorrectly loads
1376 @ref{Fonts explained},
1377 @ref{Single entry fonts},
1378 @ref{Selecting font and font size},