* mf/GNUmakefile: Make sodipodi font map.
* scm/sodipodi.scm: Add more output functions.
2002-11-24 Jan Nieuwenhuizen <janneke@gnu.org>
+ * buildscripts/make-font-dir.py:
+ * mf/GNUmakefile: Make sodipodi font map.
+
* scm/sodipodi.scm: Add more output functions.
* mf/feta-nummer.mf:
ls = string.split (ls)
sketch_p = 0
-if len (ls) and ls[0] == 'sketch':
+sketch_p = 0
+if len (ls) and ls[0] == 'sodipodi':
+ ls = ls[1:]
+ sodipodi_p = 1
+elif len (ls) and ls[0] == 'sketch':
ls = ls[1:]
sketch_p = 1
-if not sketch_p:
+if not (sketch_p or sodipodi_p):
print len(ls)
for filename in ls:
family_name = string.join (string.split (fontinfo['FamilyName'],
'-'), ' ')
- if not sketch_p:
- print filename + ' -' + string.join (fontinfo.get_X11 (), '-')
-
- else:
+
+ if sodipodi_p:
+ print string.join ((os.path.abspath (filename),
+ fontinfo.FamilyName,
+ fontinfo.FamilyName,''
+ ),
+
+ ',')
+
+ elif sketch_p:
# Sketch's lilypond.sfd map:
s = string.join ([fontinfo.FontName,
fontinfo.family,
fontinfo.name],
',')
print s
+ else:
+ print filename + ' -' + string.join (fontinfo.get_X11 (), '-')
$(outdir)/%.afm $(outdir)/%.enc $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log $(outdir)/%.tfm
$(PYTHON) $(buildscript-dir)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --afm $(outdir)/$(<F:.log=.afm) --enc $(outdir)/$(<F:.log=.enc) --tex $(outdir)/$(<F:.log=.tex) --ly $(outdir)/$(<F:.log=list.ly) $<
-fontdir: $(addprefix $(outdir)/, lilypond.map lilypond.sfd fonts.scale fonts.dir)
+fontdir: $(addprefix $(outdir)/, lilypond.map lilypond.sfd private-fonts fonts.scale fonts.dir)
## Urg
mapentry=$(1) $(shell fgrep FontName $(outdir)/$(1).afm | sed -e 's/FontName *//') <$(1).pfaX
# cd $(outdir) && echo sketch $(FETA_MF_FILES:.mf=.pfa) | $(PYTHON) $(topdir)/buildscripts/make-font-dir.py > $(@F)
cd $(outdir) && echo sketch *.pfa | $(PYTHON) $(topdir)/buildscripts/make-font-dir.py > $(@F)
+# Sodipodi map file
+SODIPODI_FONTS = parmesan20 feta-braces0 feta-nummer10 feta20
+$(outdir)/private-fonts:
+ cd $(outdir) && echo sodipodi $(SODIPODI_FONTS:%=%.pfa) | $(PYTHON) $(topdir)/buildscripts/make-font-dir.py > $(@F)
local-clean:
rm -f mfplain.mem mfplain.log
;;;; NOTE:
;;;;
;;;; * Get mftrace 1.0.12 or newer
-
+;;;;
;;;; * Get sodipodi-cvs from 2002-11-23 or newer
;;;;
-;;;; * Put in your ~/.sodipodi/private-fonts:
-;;;; mf/out/parmesan20.pfa,LilyPond Parmesan,LilyPond,
-;;;; mf/out/feta-nummer10.pfa,LilyPond Nummer,LilyPond,
-;;;; mf/out/feta20.pfa,LilyPond Feta,LilyPond,
+;;;; * Link/copy mf/out/private-fonts to ~/.sodipodi/private-fonts
"font-family:LilyPond-Feta;font-size:13;"))
("feta-nummer10" . ,(string-append
font-cruft
- "font-family:LilyPond-Feta-nummer;font-size:13;"))
+ "font-family:LilyPond-Feta-nummer;font-size:10;"))
("feta20" . ,(string-append
font-cruft
"font-family:LilyPond-Feta;font-size:20;"))