lilypond-notation: Fonts explained

 
 Fonts explained
 ...............
 
 Fonts are handled through several libraries.  FontConfig is used to
 detect available fonts on the system; the selected fonts are rendered
 using Pango.
 
    Music notation fonts can be described as a set of specific glyphs,
 ordered in several families.  The following syntax allows various
 LilyPond ‘feta’ non-text fonts to be used directly in markup mode:
 
      a1^\markup {
        \vcenter {
          \override #'(font-encoding . fetaBraces)
          \lookup #"brace120"
          \override #'(font-encoding . fetaText)
          \column { 1 3 sf }
          \override #'(font-encoding . fetaMusic)
          \lookup #"noteheads.s0petrucci"
        }
      }
      [image src="" alt="[image of music]" text="image of music"]
 
 However, all these glyphs except the braces of various sizes contained
 in ‘fetaBraces’ are available using the simpler syntax described in
 SeeMusic notation inside markup.
 
    When using the glyphs contained in ‘fetaBraces’, the size of the
 brace is specified by the numerical part of the glyph name, in arbitrary
 units.  Any integer from ‘0’ to ‘575’ inclusive may be specified, ‘0’
 giving the smallest brace.  The optimum value must be determined by
 trial and error.  These glyphs are all left braces; right braces may be
 obtained by rotation, see SeeRotating objects.
 
    Three families of text fonts are made available: the _roman_ (serif)
 font, that defaults to New Century Schoolbook, the _sans_ font and the
 monospaced _typewriter_ font – these last two families are determined by
 the Pango installation.
 
           Note: There are no default fonts associated with the _sans_
           and _typewriter_ font-families.  An input file that specifies
           either of these can lead to different output on different
           computers.  To ensure consistent output among multiple
           platforms, fonts must be specified by name, and those fonts
           must be available on any system that processes the file.  See
           SeeSingle entry fonts and SeeEntire document fonts.
 
    Each family may include different shapes and series.  The following
 example demonstrates the ability to select alternate families, shapes,
 series and sizes.  The value supplied to ‘font-size’ is the required
 change from the default size.
 
      \override Score.RehearsalMark.font-family = #'typewriter
      \mark \markup "Ouverture"
      \override Voice.TextScript.font-shape = #'italic
      \override Voice.TextScript.font-series = #'bold
      d2.^\markup "Allegro"
      \override Voice.TextScript.font-size = #-3
      c4^smaller
      [image src="" alt="[image of music]" text="image of music"]
 
 A similar syntax may be used in markup mode; however in this case it is
 and font size:::
 
      \markup {
        \column {
          \line {
            \override #'(font-shape . italic)
            \override #'(font-size . 4)
            Idomeneo,
          }
          \line {
            \override #'(font-family . typewriter)
            {
              \override #'(font-series . bold)
              re
              di
            }
            \override #'(font-family . sans)
            Creta
          }
        }
      }
      [image src="" alt="[image of music]" text="image of music"]
 
    Although it is easy to switch between preconfigured fonts, it is also
 possible to use other fonts, as explained in the following sections:
 SeeSingle entry fonts and SeeEntire document fonts.
 
 
 See also
 ........
 
DONTPRINTYET     Notation Reference: SeeThe Feta font, *noteMusic notation
DONTPRINTYET DONTPRINTYET     Notation Reference: SeeThe Feta font, SeeMusic notation

 inside markup, SeeRotating objects, *noteSelecting font and font
DONTPRINTYET DONTPRINTYET     Notation Reference: SeeThe Feta font, SeeMusic notation

 inside markup, SeeRotating objects, SeeSelecting font and font

 size, SeeFont.