| [ << Musical notation ] | [Top][Contents][Index] | [ Specialist notation >> ] |
| [ < Entire document fonts ] | [ Up : Fonts ] | [ Specialist notation > ] |
Music fonts
LilyPond neither uses FontConfig nor Pango for accessing music notation fonts but handles them by itself. As a consequence, the interface is different. This section describes how to insert music symbols into markup strings.
Music notation fonts are a collection of specific glyphs that can be accessed with several encodings. The following syntax allows LilyPond’s various Emmentaler glyphs1 to be used directly in markup mode:
a'1^\markup { \vcenter { \override #'(font-encoding . fetaBraces) \lookup "brace120" \override #'(font-encoding . fetaText) \column { 1 3 sf } \override #'(font-encoding . fetaMusic) \lookup "noteheads.s0petrucci" } }
However, all these glyphs except the braces of various sizes are available using the simpler syntax described in Music notation inside markup.
When accessing braces with the ‘fetaBraces’ encoding, 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, with 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 Rotating objects.
Footnotes
[1] LilyPond’s Emmentaler fonts contain three glyph sets: Feta (for modern notation), Parmesan (for ancient notation), and braces. Both Feta and Parmesan are accessed with the ‘fetaMusic’ encoding.
| [ << Musical notation ] | [Top][Contents][Index] | [ Specialist notation >> ] |
| [ < Entire document fonts ] | [ Up : Fonts ] | [ Specialist notation > ] |
![[image of music]](../28/lily-e1822c49.png)