summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile')
-rw-r--r--Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile108
1 files changed, 108 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile b/Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile
new file mode 100644
index 00000000000..471df23c8db
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/inconsolata/GNUmakefile
@@ -0,0 +1,108 @@
+# Copyright 2009 Karl Berry.
+# You may freely use, modify and/or distribute this file.
+
+default: fonttable.pdf inconsolata.pdf
+# ly1-nfsstest.pdf # check-coverage # compare-ts1-fix
+
+# nice dump of what's in the font, showing glyph names.
+fonttable.pdf: fonttable.ps
+ ps2pdf -dEmbedAllFonts -dPDFX=true $< $@
+fonttable.ps: Inconsolata.pfa
+ t1testpage Inconsolata.pfa -o $@
+
+inconsolata.pdf: inconsolata.tex test.pdf
+ pdflatex '\nonstopmode\input $<' || { rm -f $@; exit 1; }
+
+# test document. We handcrafted the fd and map files.
+test.pdf: test.tex \
+ inconsolata.sty fi4.map \
+ ec-inconsolata.tfm t1fi4.fd \
+ ei1-inconsolata.tfm ei1fi4.fd \
+ qx-inconsolata.tfm qxfi4.fd \
+ rm-inconsolata.tfm ot1fi4.fd \
+ texnansi-inconsolata.tfm ly1fi4.fd \
+ ts1-inconsolata.tfm ts1fi4.fd \
+#
+ pdflatex '\nonstopmode\input $<' || { rm -f $@; exit 1; }
+
+
+# make individual tfm's from our handcrafted encoding files using otftotfm.
+# This being a typewriter font, there are no kerns or ligatures, so no
+# -fkern -fliga.
+otftotfm = otftotfm $(otftotfm_opt)
+otftotfm_opt = --no-virtual --no-encoding
+
+ec-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb fi4-ec.enc
+ $(otftotfm) -e fi4-ec.enc $< `basename $@ .tfm`
+
+ei1-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb fi4-ei1.enc
+ $(otftotfm) -e fi4-ei1.enc $< `basename $@ .tfm`
+
+rm-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb fi4-ot1tt.enc
+ $(otftotfm) -e fi4-ot1tt.enc $< `basename $@ .tfm`
+
+qx-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb
+ $(otftotfm) -e fi4-qxtt.enc $< `basename $@ .tfm`
+
+texnansi-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb fi4-texnansi.enc
+ $(otftotfm) -e fi4-texnansi.enc $< `basename $@ .tfm`
+
+ts1-inconsolata.tfm: Inconsolata.otf Inconsolata.pfb fi4-ts1.enc
+ $(otftotfm) -e fi4-ts1.enc $< `basename $@ .tfm`
+
+# The original distribution only has pfa; we want to work with pfb.
+Inconsolata.pfb: Inconsolata.pfa
+ t1binary $< >$@
+
+# testing with the nfsstest document.
+ly1-nfsstest.pdf:
+ printf "\nLY1\nfi4\n\n\n\n%s\n" '\bigtest\bye' | pdflatex nfsstest
+
+# create list of glyph names using otfinfo.
+# the NameMe glyphs are empty, so leave them out.
+names/inconsolata.nam: Inconsolata.otf
+ otfinfo -g $< | fgrep -v NameMe | sort >$@ || rm -f $@
+
+# create list of glyph names via creation of an afm; but the afm
+# has wrong [OU]dblacute entries with gs 8.64. Did not try to debug.
+#names/inconsolata.nam: inconsolata.afm
+# awk '$$1=="C" {print $$8}' $< | grep -v NameMe | sort >$@ || rm -f $@
+#inconsolata.afm: Inconsolata.pfa
+# pf2afm $<
+# mv Inconsolata.afm $@
+
+# for a given encoding, extract its names.
+# have to mkdir names before running this.
+names/%.nam: %.enc GNUmakefile
+ cat $< \
+ | sed -e 's/ *%.*$$//' -e 's/ *$$//' -e 's/^ *//' \
+ | tr ' ' '\n' \
+ | sed -e 's,^/,,' \
+ | egrep -v '^$$|[][]' | sort -u >$@
+
+.PRECIOUS: names/%.nam
+
+# step 1: compare names in canonical encoding to inconsolata names.
+compare-%-orig: names/inconsolata.nam names/%.nam
+ comm -13 $^
+
+# step 2: compare names in custom encoding to inconsolata names.
+compare-%-fix: names/inconsolata.nam names/fi4-%.nam
+ comm -13 $^
+
+# at the end, see which glyphs in the font we have not used.
+# Exclude checking of Dcroat (=Eth) and uni02C9 (=macron).
+check-coverage: names/inconsolata.nam names/all-concat.nam
+ -comm -23 $^ | egrep -v 'Dcroat|uni02C9'
+all-concat.enc: $(wildcard fi4-*.enc)
+ sort -u $^ >$@
+
+# distribution tarball for CTAN.
+dist: inconsolata.zip
+inconsolata.zip: Inconsolata.otf Inconsolata.pfb Inconsolata.sfd \
+ GNUmakefile README fonttable.pdf test.pdf test.tex \
+ inconsolata.sty *-inconsolata.tfm \
+ fi4.map fi4*.enc *fi4.fd inconsolata.pdf inconsolata.tex
+ rm -f $@
+ zip $@ $^
+ ls -l $@