2005-06-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * input/regression/font-family-override.ly (Module): new file.
+
* scm/font.scm (make-pango-font-tree): new function.
* lily/beam.cc (before_line_breaking): remove warning about less
--- /dev/null
+\header {
+
+ texidoc = "The default font families for text can be
+ overridden with @code{make-pango-font-tree}"
+
+}
+
+\version "2.5.27"
+
+\paper {
+ % change for other default global staff size.
+ myStaffSize = #20
+
+ #(define fonts
+ (make-pango-font-tree "Times New Roman" "Helvetica" "Courier" (/ myStaffSize 20)))
+}
+
+\relative {
+
+ c'^\markup { roman: foo \bold bla \italic bar \italic \bold baz }
+ c'_\markup {
+ \override #'(font-family . sans)
+ {
+ sans: foo \bold bla \italic bar \italic \bold baz
+ }
+ }
+ c'^\markup {
+ \override #'(font-family . typewriter)
+ {
+ mono: foo \bold bla \italic bar \italic \bold baz
+ }
+ }
+}