]> git.donarmstrong.com Git - lilypond.git/commitdiff
(Font selection): add
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 1 Aug 2005 11:31:09 +0000 (11:31 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 1 Aug 2005 11:31:09 +0000 (11:31 +0000)
doco for make-pango-font-tree.

ChangeLog
Documentation/user/advanced-notation.itely
lily/forbid-break-engraver.cc

index 4dfb7d89966d102a26190e150fed866ea7c25b8e..fb3f719678057c4b70c8ff66564efd5ca4c0d348 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-01  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * Documentation/user/advanced-notation.itely (Font selection): add
+       doco for make-pango-font-tree.
+
 2005-07-31  Graham Percival  <gperlist@shaw.ca>
 
        * Documentation/user/music-glossary: more languages
index ee6b3ae790bdf78ece6483ad5ba9d990b4d8e544..4a840dd44d0a8b5c0f04263d6301c5c9f5591da8 100644 (file)
@@ -454,11 +454,37 @@ property. The resulting size is taken relative to the
 @cindex font size
 @cindex font magnification
 
+
+It is also possible to change the default font family for the entire
+document. This is done by calling the @code{make-pango-font-tree} from
+within the @code{\paper} block. The function takes names for the font
+families to use for roman, sans serif and monospaced text. For
+example,
+
+@cindex font families, setting
+@cindex Pango
+
+
+@lilypond[verbatim]
+\paper  {
+  myStaffSize = #20
+  
+  #(define fonts
+    (make-pango-font-tree "Times New Roman"
+                          "Helvetica"
+                          "Courier"
+                           (/ myStaffSize 20)))
+}
+
+{
+  c'^\markup { roman: foo \sans bla \typewriter bar }
+}
+@end lilypond
+
+
 @seealso
 
-@c FIXME.
-Init files: @file{ly/@/declarations@/-init@/.ly} contains hints how new
-fonts may be added to LilyPond.
+Examples: @file{ly/@/font@/-family@/-override.ly}
 
 
 @node New dynamic marks
index 7ad1133e4f8784c74182134c4c8daa51d1189127..1724ccd36c1f6305a68464302d73e1f421509761 100644 (file)
@@ -51,7 +51,8 @@ Forbid_line_break_engraver::start_translation_timestep ()
 
 
 ADD_TRANSLATOR (Forbid_line_break_engraver,
-               /* descr */ "Forbid line breaks when note heads are still playing at some point.",
+               /* descr */ "Forbid line breaks when note heads "
+               "are still playing at some point.",
                /* creats*/ "",
                /* accepts */ "",
                /* reads */ "busyGrobs",