]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-default-text-font-family.ly
Local updates from LSR
[lilypond.git] / Documentation / snippets / changing-the-default-text-font-family.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10 %% Translation of GIT committish: 1cda7b7b8219cb97399b8e7b56c1115aaf82c002
11   texidocfr = "
12 Les familles de fontes par défaut pour le texte peuvent être changées à
13 l'aide de la fonction @code{make-pango-font-tree}.
14
15 "
16   doctitlefr = "Changement des fontes textuelles par défaut"
17
18   lsrtags = "text, tweaks-and-overrides"
19
20   texidoc = "
21 The default font families for text can be overridden with
22 @code{make-pango-font-tree}.
23
24 "
25   doctitle = "Changing the default text font family"
26 } % begin verbatim
27
28
29 \paper {
30   % change for other default global staff size.
31   myStaffSize = #20
32   %{
33      run
34          lilypond -dshow-available-fonts blabla
35      to show all fonts available in the process log.
36   %}
37
38   #(define fonts
39     (make-pango-font-tree "Times New Roman"
40                           "Nimbus Sans"
41                           "Luxi Mono"
42 ;;                        "Helvetica"
43 ;;                        "Courier"
44      (/ myStaffSize 20)))
45 }
46
47 \relative c'' {
48   c4^\markup {
49     roman: foo \bold bla \italic bar \italic \bold baz
50   }
51   c'4_\markup {
52     \override #'(font-family . sans)
53     {
54       sans: foo \bold bla \italic bar \italic \bold baz
55     }
56   }
57   c'2^\markup {
58     \override #'(font-family . typewriter)
59     {
60       mono: foo \bold bla \italic bar \italic \bold baz
61     }
62   }
63 }
64
65