* 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-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
/* 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++)
$(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)
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,$<))
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)
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)
(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
(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
(if (and (pair? rest) (symbol? (car rest)))
(car rest)
'Voice))))
-