]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/auto-beam.scm (score-override-auto-beam-setting): New function.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 13 Jan 2005 11:44:12 +0000 (11:44 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 13 Jan 2005 11:44:12 +0000 (11:44 +0000)
* lily/main.cc (setup_paths): Add cff.

* mf/GNUmakefile (foe): Include actual target %.cff.
(INSTALLATION_OUT_SUFFIXES): Install CFF and SVG fonts too.

ChangeLog
lily/main.cc
mf/GNUmakefile
scm/auto-beam.scm

index cff57e8791eb4fa708a471ba9300c2dd90cd6461..ea7cf85e9c1bc203d44b212513627f2bd1de8e76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-01-13  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * scm/auto-beam.scm (score-override-auto-beam-setting): New function.
+
+       * lily/main.cc (setup_paths): Add cff.
+
+       * mf/GNUmakefile (foe): Include actual target %.cff.
+       (INSTALLATION_OUT_SUFFIXES): Install CFF and SVG fonts too.
+
 2005-01-10  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/include/lily-lexer.hh (class Lily_lexer): lose hungarian _b
index 1faab1abac54d1a90c95e14fa7f680423dadce48..a532fd9eb45f2f98c379d612e57b595095c45931 100644 (file)
@@ -226,7 +226,8 @@ setup_paths ()
 
   /* Adding mf/out make lilypond unchanged source directory, when setting
      LILYPONDPREFIX to lilypond-x.y.z */
-  char *suffixes[] = {"ly", "otf", "mf/out", "scm", "tfm", "ps", "svg", 0};
+  char *suffixes[] = {"ly", "cff", "otf", "mf/out", "scm", "tfm", "ps", "svg",
+                     0};
 
   for (unsigned i = 0; prefix_directories[i]; i++)
     for (char **s = suffixes; *s; s++)
index ff226ff955b3929245eb316778f7631e8b65e806..cf8740ce7ad36d7da42c8e0242f7add22a1e196d 100644 (file)
@@ -25,6 +25,7 @@ OTF_TABLES = $(addsuffix .otf-table, $(addprefix $(outdir)/feta, $(STAFF_SIZES))
  $(BRACES:%=$(outdir)/feta-braces-%.otf-table)
 FETA_FONTS = $(FETA_MF_FILES:.mf=)
 SVG_FILES = $(OTF_FILES:%.otf=%.svg) $(ALL_FONTS:%=$(outdir)/%.svg)
+CFF_FILES = $(OTF_FILES:%.otf=%.cff) $(ALL_FONTS:%=$(outdir)/%.cff)
 
 
 $(outdir)/aybabtu.otf-table: $(BRACES:%=$(outdir)/feta-braces-%.otf-table)
@@ -56,7 +57,7 @@ foe:
        echo $(TEXMF)
        kpsewhich exbase.mf
 
-$(outdir)/%.otf $(outdir)/%.svg: $(outdir)/%.pe
+$(outdir)/%.cff $(outdir)/%.otf $(outdir)/%.svg: $(outdir)/%.pe
        (cd $(outdir) && fontforge -script $(notdir $<)) 
 
 $(outdir)/%.otf-table: $(outdir)/%.lisp $(if $(findstring brace,$<),,$(subst feta,parmesan,$<)) 
@@ -84,11 +85,12 @@ ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(TFM_FILES) $(LOG_FILES) $(ENC_FILES)
 INSTALLATION_DIR=$(local_lilypond_datadir)/fonts/source
 INSTALLATION_FILES=$(MF_FILES) $(AF_FILES)
 
-INSTALLATION_OUT_SUFFIXES=1 2 3 4 5 6 7
+INSTALLATION_OUT_SUFFIXES=1 2 3 4 5 6 7 8 9
 
 INSTALLATION_OUT_DIR1=$(local_lilypond_datadir)/tex
 INSTALLATION_OUT_FILES1=$(TEXTABLES)
 
+# must not be installed with .cff, pango/fontconfig does not like .cff fonts 
 INSTALLATION_OUT_DIR2=$(local_lilypond_datadir)/otf
 INSTALLATION_OUT_FILES2=$(OTF_FILES)
 
@@ -107,8 +109,12 @@ INSTALLATION_OUT_FILES6=$(outdir)/lilypond.map
 INSTALLATION_OUT_DIR7=$(local_lilypond_datadir)/ps/
 INSTALLATION_OUT_FILES7=$(ENC_FILES)
 
-INSTALLATION_OUT_DIR8=$(local_lilypond_datadir)/svg
-INSTALLATION_OUT_FILES8=$(OTF_FILES)
+# install in fonts/cff or ps/ directory?
+INSTALLATION_OUT_DIR8=$(local_lilypond_datadir)/cff
+INSTALLATION_OUT_FILES8=$(CFF_FILES)
+
+INSTALLATION_OUT_DIR9=$(local_lilypond_datadir)/svg
+INSTALLATION_OUT_FILES9=$(SVG_FILES)
 
 
 export MFINPUTS:=.:$(MFINPUTS)
index eb289931180ebaa4f8d6cfdfc972659b1bacf201..f046f810160031ea3b12f1542d100e2d7d2e1a70 100644 (file)
@@ -88,31 +88,24 @@ checking. "
 
   (ly:context-set-property! context context-prop
                           (cons (cons setting value)
-                                (ly:context-property context context-prop)
-                                )
-                          )
-  )
+                                (ly:context-property context context-prop))))
 
 (define (revert-property-setting context setting)
   "Like the C++ code that executes \revert, but without type
 checking. "
-  
+
   (define (revert-assoc alist key)
     "Return ALIST, with KEY removed. ALIST is not modified, instead
 a fresh copy of the  list-head is made."
     (cond
      ((null? alist) '())
      ((equal? (caar alist) key) (cdr alist))
-     (else (cons (car alist) (revert-assoc alist key)))
-     ))
+     (else (cons (car alist) (revert-assoc alist key)))))
 
-  
-  
     (ly:context-set-property!
      context context-prop
      (revert-assoc (ly:context-property context context-prop)
-                  setting))
-  )
+                  setting)))
 
 (define-public (override-auto-beam-setting setting num den . rest)
   (ly:export
@@ -120,12 +113,22 @@ a fresh copy of the  list-head is made."
     (make-apply-context (lambda (c)
                          (override-property-setting
                           c 'autoBeamSettings
-                          setting (ly:make-moment num den))
-                         ))
+                          setting (ly:make-moment num den))))
+    (if (and (pair? rest) (symbol? (car rest)))
+       (car rest)
+       'Voice))))
+
+;; UGH -- fixme, docme
+(define-public (score-override-auto-beam-setting setting num den . rest)
+  (ly:export
+   (context-spec-music
+    (make-apply-context (lambda (c)
+                         (override-property-setting
+                          c 'autoBeamSettings
+                          setting (ly:make-moment num den))))
     (if (and (pair? rest) (symbol? (car rest)))
        (car rest)
-       'Voice)
-  )))
+       'Score))))
 
 (define-public (revert-auto-beam-setting setting . rest)
   (ly:export
@@ -137,4 +140,3 @@ a fresh copy of the  list-head is made."
     (if (and (pair? rest) (symbol? (car rest)))
        (car rest)
        'Voice))))
-