]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/sakura-sakura.ly: document how to override font.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 8 Feb 2006 12:42:11 +0000 (12:42 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 8 Feb 2006 12:42:11 +0000 (12:42 +0000)
* input/regression/font-family-override.ly:  doc -dshow-available-fonts

ChangeLog
input/regression/font-family-override.ly
input/sakura-sakura.ly
lily/midi-item.cc
lily/trill-spanner-engraver.cc
ly/engraver-init.ly
scm/define-grobs.scm
scm/lily.scm
scm/output-texstr.scm

index ee5560aad5c5e21164e64747db6e68636106948e..a2bb17dc6862dfc77db26c4488a8610ba8b3f51a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-02-08  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * input/sakura-sakura.ly: document how to override font.
+
+       * input/regression/font-family-override.ly:  doc -dshow-available-fonts
+
+2006-02-07  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/midi-item.cc (to_string): truncate time sig at 255 beats.
+
 2006-02-08  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * scripts/convert-ly.py (lilypond_version_re_str): Move from
@@ -15,6 +25,8 @@
 
 2006-02-06  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * VERSION (PACKAGE_NAME): release 2.7.32
+
        * Documentation/topdocs/NEWS.tely (Top): document new variable
        naming.
 
index ab2a3524f02391b8f4359f396004642a19c13c3c..342ed6ab15da4718ee518a65829ca5c64eb4fb48 100644 (file)
 \paper  {
   % change for other default global staff size. 
   myStaffSize = #20
+
+
+  %{
+
+  run
+
+      lilypond -dshow-available-fonts blabla
+
+  to show all fonts available in the process log.  
+  
+  %}
+
   
   #(define fonts
     (make-pango-font-tree "Times New Roman"
index 2e0d812dc5b94cc4241e84c333c5eb3a42245b53..1714653a36a021ea7bc1f2945fc98057bafc4f45 100644 (file)
@@ -2,6 +2,7 @@
 
 \version "2.7.32"
 
+
 \header {
   title = "さくら さくら"
   subtitle = "(Sakura, sakura)"
       | d,4 e b'8[ a] f4 | e1 \bar "|."
     }
     \addlyrics {
+
+
+      %{
+
+      Try the following if the default font doesn't work for you,
+      run
+
+      lilypond -dshow-available-fonts blabla
+
+      this will show all fonts available to LilyPond, substitute
+      FAMILY-NAME below and uncomment
+      
+      %}
+      %% \override Lyrics . LyricText #'font-name = #"FAMILY-NAME"
+      
       さ く ら さ く ら
       の や ま も さ と も
       み わ た す か ぎ り
index 34184b636a1602a4ae526adbf752cb9a366c9944..23ab0b614f333a07f6f8cc47a38826547409b358 100644 (file)
@@ -216,9 +216,17 @@ Midi_time_signature::Midi_time_signature (Audio_time_signature *a)
 std::string
 Midi_time_signature::to_string () const
 {
-  int num = audio_->beats_;
+  int num = abs (audio_->beats_);
+  if (num > 255)
+    {
+      warning ("Time signature with more than 255 beats. Truncating");
+      num = 255;
+    }
+
   int den = audio_->one_beat_;
 
+
+  
   std::string str = "ff5804";
   str += String_convert::int2hex (num, 2, '0');
   str += String_convert::int2hex (intlog2 (den), 2, '0');
index 2b72316660e212bdc9455cc1ab5a582739796b2c..4806758b002cfd7c854aa2cd6835d6c753312da9 100644 (file)
@@ -144,6 +144,7 @@ Trill_spanner_engraver::finalize ()
       span_ = 0;
     }
 }
+
 ADD_ACKNOWLEDGER (Trill_spanner_engraver, note_column);
 ADD_TRANSLATOR (Trill_spanner_engraver,
                /* doc */ "Create trill spanner from a Music.",
index a5b0b93fba36d2e7fcdbd1152b929ec8222b9765..12208d9c108c3486d11a5b26da8a8679cfc7b977 100644 (file)
@@ -451,6 +451,7 @@ AncientRemoveEmptyStaffContext = \context {
   \consists "Stanza_number_align_engraver"
   \consists "Bar_number_engraver"
   \consists "Tweak_engraver"
+  \consists "Parenthesis_engraver"
   
   \defaultchild "Staff"
 
index df1dd3d9a9703ac1ea50f586f6322f4da01a77de..ffe24ab280665ebdec5b9d4ded62c0a5909b4580 100644 (file)
        ))
     (LyricText
      . (
-
        (stencil . ,ly:text-interface::print)
-
        (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent)
        (self-alignment-X . 0)
        (word-space . 0.6)
index 1f099b248c91244b40c4260ab16b42fd58e0f3ba..43d1176ebbe438941f51827d1a5e553b959159d9 100644 (file)
@@ -37,7 +37,10 @@ similar to chord syntax")
              (ttf-verbosity 0
                           "how much verbosity for TTF font embedding?")
              (debug-gc #f
-                       "dump GC protection info"))
+                       "dump GC protection info")
+             (show-available-fonts #f
+                                   "List  font names available.")
+             )
            ))
 
 ;; FIXME: stray statement
@@ -103,8 +106,6 @@ similar to chord syntax")
     (if (ly:get-option 'verbose)
        (ly:progress "]"))))
 
-(define-public TEX_STRING_HASHLIMIT 10000000)
-
 ;; Cygwin
 ;; #(CYGWIN_NT-5.1 Hostname 1.5.12(0.116/4/2) 2004-11-10 08:34 i686)
 ;;
@@ -351,6 +352,8 @@ The syntax is the same as `define*-public'."
                   (string<? (car x) (car y)))))))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+
 (define-public (lilypond-main files)
   "Entry point for LilyPond."
   
@@ -376,6 +379,12 @@ The syntax is the same as `define*-public'."
 
 (define-public (lilypond-all files)
 
+  (if (ly:get-option 'show-available-fonts)
+      (begin
+       (ly:font-config-display-fonts)
+       (exit 0)
+       ))
+  
   (let* ((failed '())
         (handler (lambda (key failed-file)
                    (set! failed (append (list failed-file) failed)))))
index a7998d45289e905bdeb758bfad345613af6f6636..62fe1547a495b149edaf9156254c0b52c43b66e0 100644 (file)
@@ -26,6 +26,8 @@
   (if (string? what)
       what
       ""))
+
+(define TEX_STRING_HASHLIMIT 10000000)
 (define-public (text font str)
   (call-with-output-string
    (lambda (port)