From: hanwen Date: Wed, 9 Mar 2005 10:27:19 +0000 (+0000) Subject: * lily/font-config.cc (init_fontconfig): add X-Git-Tag: release/2.5.23~392 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9cfb595a3457c6a48e3e21008d2ba01aa030e220;p=lilypond.git * lily/font-config.cc (init_fontconfig): add fonts/{otf,type1,cff} to path. * lily/main.cc (setup_paths): add fonts/{otf,svg,tfm,cff} to path * mf/GNUmakefile (Module): install all fonts under otf/ * scm/framework-ps.scm (Module): read fonts from fonts/extension, replace /fonts/otf/ by /ps/ --- diff --git a/ChangeLog b/ChangeLog index befd3d7fbc..64a0b363e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2005-03-09 Han-Wen Nienhuys + + * lily/font-config.cc (init_fontconfig): add + fonts/{otf,type1,cff} to path. + + * lily/main.cc (setup_paths): add fonts/{otf,svg,tfm,cff} to path + + * mf/GNUmakefile (Module): install all fonts under otf/ + + * scm/framework-ps.scm (Module): read fonts from fonts/extension, + replace /fonts/otf/ by /ps/ + + 2005-03-09 Jan Nieuwenhuizen * lily/paper-book.cc (classic_output): Reinstate header_0_ hack. @@ -15,6 +28,9 @@ 2005-03-09 Han-Wen Nienhuys + * stepmake/stepmake/executable-targets.make (installexe): don't + strip installed executables + * lily/font-select.cc (get_font_by_design_size): revert pango_description_string as well. diff --git a/lily/font-config.cc b/lily/font-config.cc index ff2cb3f9ab..f46beaffd2 100644 --- a/lily/font-config.cc +++ b/lily/font-config.cc @@ -26,10 +26,10 @@ init_fontconfig () FcConfig *fcc = FcConfigGetCurrent (); Array dirs; - dirs.push (prefix_directory + "/otf/"); + dirs.push (prefix_directory + "/fonts/otf/"); dirs.push (prefix_directory + "/mf/out/"); - dirs.push (prefix_directory + "/type1/"); - dirs.push (prefix_directory + "/cff/"); + dirs.push (prefix_directory + "/fonts/type1/"); + dirs.push (prefix_directory + "/fonts/cff/"); for (int i = 0; i < dirs.size (); i++) { diff --git a/lily/main.cc b/lily/main.cc index 1f4a1a5e30..2cd13eb5b0 100644 --- a/lily/main.cc +++ b/lily/main.cc @@ -233,7 +233,8 @@ setup_paths () /* Adding mf/out make lilypond unchanged source directory, when setting LILYPONDPREFIX to lilypond-x.y.z */ - char *suffixes[] = {"ly", "cff", "otf", "mf/out", "scm", "tfm", "ps", "svg", + char *suffixes[] = {"ly", "fonts/cff", "fonts/otf", "mf/out", "scm", + "fonts/tfm", "ps", "fonts/svg", 0}; for (char **s = suffixes; *s; s++) diff --git a/mf/GNUmakefile b/mf/GNUmakefile index a8271110bd..a16d2217d9 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -92,7 +92,7 @@ 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_DIR2=$(local_lilypond_datadir)/fonts/otf INSTALLATION_OUT_FILES2=$(OTF_FILES) INSTALLATION_OUT_DIR3=$(local_lilypond_datadir)/fonts/tfm @@ -107,13 +107,13 @@ INSTALLATION_OUT_FILES5=$(PFA_FILES) INSTALLATION_OUT_DIR6=$(local_lilypond_datadir)/fonts/map INSTALLATION_OUT_FILES6=$(outdir)/lilypond.map -INSTALLATION_OUT_DIR7=$(local_lilypond_datadir)/cff/ +INSTALLATION_OUT_DIR7=$(local_lilypond_datadir)/fonts/cff/ INSTALLATION_OUT_FILES7=$(CFF_FILES) INSTALLATION_OUT_DIR7=$(local_lilypond_datadir)/ps/ INSTALLATION_OUT_FILES7=$(ENC_FILES) -INSTALLATION_OUT_DIR9=$(local_lilypond_datadir)/svg +INSTALLATION_OUT_DIR9=$(local_lilypond_datadir)/fonts/svg INSTALLATION_OUT_FILES9=$(SVG_FILES) diff --git a/scm/font.scm b/scm/font.scm index d0ffe65655..90cfcceeef 100644 --- a/scm/font.scm +++ b/scm/font.scm @@ -322,7 +322,7 @@ (font-encoding . latin1) ;; ugh. ) - `(,(ly:pt (* factor 12.0)) + `(,(ly:pt (* factor 11.0)) . #(,(cons (ly:pt 12) (ly:make-pango-description-string diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm index 3c954609e8..a2c2f53f87 100644 --- a/scm/framework-ps.scm +++ b/scm/framework-ps.scm @@ -234,7 +234,13 @@ ((and bare-file-name (string-match "\\.(otf|cff)" bare-file-name)) - (cached-file-contents (string-regexp-substitute "(otf|cff)" "cff.ps" bare-file-name))) + (for-each (lambda (tup) (set! bare-file-name + (string-regexp-substitute (car tup) (cdr tup) bare-file-name))) + '(("/fonts/otf/" . "/ps/") + ("/fonts/cff/" . "/cff/") + ("\\.(otf|cff)" . ".cff.ps"))) + + (cached-file-contents bare-file-name)) ((and bare-file-name (string-match "\\.ttf" bare-file-name)) (ly:ttf->pfa bare-file-name)) (bare-file-name (cached-file-contents bare-file-name)) diff --git a/stepmake/stepmake/executable-targets.make b/stepmake/stepmake/executable-targets.make index 0e2c987af4..edf282ab0a 100644 --- a/stepmake/stepmake/executable-targets.make +++ b/stepmake/stepmake/executable-targets.make @@ -10,8 +10,7 @@ installexe: all -$(INSTALL) -d $(DESTDIR)$(bindir) $(foreach a, $(EXECUTABLES), \ $(INSTALL) -m 755 $(outdir)/$(a) \ - $(DESTDIR)$(bindir)/$(program_prefix)$(a)$(program_suffix) && \ - strip $(bindir)/$(program_prefix)$(a)$(program_suffix) && ) true + $(DESTDIR)$(bindir)/$(program_prefix)$(a)$(program_suffix) && ) true $(foreach a, $(SEXECUTABLES), \ $(INSTALL) -m 755 $(outdir)/$(a) $(DESTDIR)$(bindir) &&) true