From: Han-Wen Nienhuys Date: Sat, 31 Dec 2005 02:33:12 +0000 (+0000) Subject: (install-fc-cache): remove old font.cache-1 files. X-Git-Tag: release/2.7.26~1 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=7fe7bd5c2266a35c7815314d757fca3bc80917b4;p=lilypond.git (install-fc-cache): remove old font.cache-1 files. --- diff --git a/ChangeLog b/ChangeLog index d76e509809..178fa4af0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-12-31 Han-Wen Nienhuys + + * mf/GNUmakefile (install-fc-cache): remove old font.cache-1 files. + 2005-12-30 Han-Wen Nienhuys * lily/font-config.cc (init_fontconfig): verbosity. diff --git a/lily/font-config.cc b/lily/font-config.cc index ee7f8de8a4..56103274d6 100644 --- a/lily/font-config.cc +++ b/lily/font-config.cc @@ -36,7 +36,6 @@ init_fontconfig () if (!is_file ((char*)cache_file)) message (_f ("Rebuilding FontConfig cache %s. this may take a while...", cache_file)); - FcConfigBuildFonts (font_config_global); FcConfigSetCurrent (font_config_global); Array dirs; @@ -53,8 +52,6 @@ init_fontconfig () message (_f ("adding font directory: %s", dir.to_str0 ())); } - font_config_global = FcConfigGetCurrent (); - if (be_verbose_global) progress_indication ("\n"); diff --git a/mf/GNUmakefile b/mf/GNUmakefile index 92b1f3c1f2..6c613432fa 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -131,6 +131,7 @@ $(outdir)/fonts.cache-1: $(PFA_OTF_FILES) $(PFA_FILES) $(OTF_FILES) local-install: install-fc-cache install-fc-cache: + $(foreach suff, $(INSTALLATION_OUT_SUFFIXES), rm -f $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff))/fonts.cache-1 && ) true fc-cache $(foreach suff, $(INSTALLATION_OUT_SUFFIXES), $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff))) ALL_FONTS = $(FETA_FONTS) $(SAUTER_FONTS)