From: fred Date: Wed, 27 Mar 2002 02:07:28 +0000 (+0000) Subject: lilypond-1.5.47 X-Git-Tag: release/1.5.59~226 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ac18aa8d7f8fae7c56a780a90aceba12aadcf447;p=lilypond.git lilypond-1.5.47 --- diff --git a/buildscripts/mf-to-table.py b/buildscripts/mf-to-table.py index 820dc6e691..ee15b10d46 100644 --- a/buildscripts/mf-to-table.py +++ b/buildscripts/mf-to-table.py @@ -122,6 +122,16 @@ def write_tex_defs (file, global_info, charmetrics): for m in charmetrics: file.write (r'''\def\%s%s{\char%d}%s''' % (nm, m['tex'], m['code'],'\n')) +def write_ps_encoding (file, global_info, charmetrics): + encs = ['.notdef'] * 256 + for m in charmetrics: + encs[m['code']] = m['tex'] + + file.write ('/FetaEncoding [\n') + for m in range(0,256): + file.write (' /%s %% %d\n' % (encs[m], m)) + file.write ('] def\n') + def write_fontlist (file, global_info, charmetrics): nm = global_info['FontFamily'] file.write (r""" @@ -177,9 +187,10 @@ Options: (options, files) = getopt.getopt( sys.argv[1:], 'a:d:hl:o:p:t:', - ['afm=', 'outdir=', 'dep=', 'tex=', 'ly=', 'debug', 'help', 'package=']) + ['enc=', 'afm=', 'outdir=', 'dep=', 'tex=', 'ly=', 'debug', 'help', 'package=']) +enc_nm = '' texfile_nm = '' depfile_nm = '' afmfile_nm = '' @@ -195,6 +206,8 @@ for opt in options: outdir_prefix = a elif o == '--tex' or o == '-t': texfile_nm = a + elif o == '--enc': + enc_nm = a elif o == '--ly' or o == '-': lyfile_nm = a elif o== '--help' or o == '-h': @@ -220,6 +233,8 @@ for filenm in files: write_afm_metric (afm, g,m) write_tex_defs (open (texfile_nm, 'w'), g, m) + write_ps_encoding (open (enc_nm, 'w'), g, m) + write_deps (open (depfile_nm, 'wb'), deps, [base + '.dvi', texfile_nm, afmfile_nm]) if lyfile_nm != '': write_fontlist(open (lyfile_nm, 'w'), g, m) diff --git a/mf/GNUmakefile b/mf/GNUmakefile index 5a667fe1f8..0a576e5467 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -27,12 +27,13 @@ $(outdir)/cmr10.afm: LOG_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.log) $(PARMESAN_FILES:.mf=.log)) TEXTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.tex) $(PARMESAN_FILES:.mf=.tex)) AFM_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.afm) $(PARMESAN_FILES:.mf=.afm) $(AF_FILES:.af=.afm) $(addsuffix .afm, $(CM_AFM_FILES))) +ENC_FILES=$(TEXTABLES:.tex=.enc) TFM_FILES = $(addprefix $(outdir)/, $(FONT_FILES:.mf=.tfm)) # Make tfm files first, log files last, # so that normally log files aren't made twice -ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(AFM_FILES) $(TFM_FILES) $(LOG_FILES) +ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(AFM_FILES) $(TFM_FILES) $(LOG_FILES) $(ENC_FILES) #PRE_INSTALL=$(MAKE) "$(ALL_GEN_FILES)" INSTALLATION_DIR=$(datadir)/fonts/source @@ -54,6 +55,7 @@ INSTALLATION_OUT_FILES3=$(TFM_FILES) #MAKE_PFA_FILES=1 PFA_FILES = $(addprefix $(outdir)/, $(FONT_FILES:.mf=.pfa)) + ifdef MAKE_PFA_FILES ALL_GEN_FILES += $(PFA_FILES) $(outdir)/lilypond.map INSTALLATION_OUT_DIR4=$(datadir)/fonts/type1 @@ -74,8 +76,8 @@ $(outdir)/lilypond.map: ## ## todo: this also depends on .tfm, FIXME. -$(outdir)/%.afm $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log - $(PYTHON) $(buildscript-dir)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(