]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/gonville.ly
Prepare for adding alternative music font, set default font-family feta.
[lilypond.git] / input / regression / gonville.ly
1 \header {
2
3   texidoc = "The default music font can be overridden by setting
4   @code{(font-family . gonville)} in the @code{font-defaults} in the
5   paper block."
6
7 }
8
9 \version "2.13.6"
10
11 \paper {
12   % Load the alternative font definitions into the font tree.
13   #(add-music-fonts fonts "gonville" 'gonville (/ staff-height (* 20 pt)))
14 }
15
16 %{
17   Note: for this to work, do something like
18
19      wget -P out http://www.chiark.greenend.org.uk/~sgtatham/gonville/gonville-r8724.tar.gz
20      tar xzf out/gonville-r8724.tar.gz
21      ln out/gonville-r8724/lilyfonts/otf/gonville* out/share/lilypond/current/fonts/otf/
22      (cd out/share/lilypond/current/fonts/otf && for i in gonville*; do mv $i $(echo $i | sed s/gonville/gonville-/); done)
23
24
25   To show all available fonts, do
26
27      lilypond -dshow-available-fonts blabla
28
29 %}
30
31 \relative c'' {
32   \set Staff.instrumentName = #"Default"
33   a4-\trill b8 c16 d32
34 }
35
36 \score {
37   \relative c'' {
38     \set Staff.instrumentName = #"Feta"
39     a4-\trill b8
40     c16 d32
41   }
42   \layout {
43     #(define font-defaults
44       '((font-family . feta) (font-encoding . fetaMusic)))
45   }
46 }
47
48 \score {
49   \relative c'' {
50     \set Staff.instrumentName = #"Gonville"
51     a4-\trill b8 c16 d32
52   }
53   \layout {
54     #(define font-defaults
55       '((font-family . gonville) (font-encoding . fetaMusic)))
56   }
57 }