diff options
author | Karl Berry <karl@freefriends.org> | 2009-04-11 00:17:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-04-11 00:17:48 +0000 |
commit | d66c210746dff5ad39284b6793dd0333a6df6f9d (patch) | |
tree | a78765bd842841e09589aa45ec01c2f4e6f55873 /Master/texmf-dist/doc/support/fontools/examples/berling | |
parent | 454868a5f2b777edfb9823ae5a2f2f93d029b95c (diff) |
install fontools utilities (10apr09)
git-svn-id: svn://tug.org/texlive/trunk@12687 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/fontools/examples/berling')
4 files changed, 153 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sty b/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sty new file mode 100644 index 00000000000..7d771dedd32 --- /dev/null +++ b/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sty @@ -0,0 +1,11 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{berling} + [2005/08/08 v1.1 Style file for Monotype Berling] +\RequirePackage[T1]{fontenc} +\RequirePackage{textcomp} +\DeclareOption{lining}{\renewcommand*{\rmdefault}{mbrx}} +\DeclareOption{oldstyle}{\renewcommand*{\rmdefault}{mbrj}} +\ExecuteOptions{oldstyle} +\ProcessOptions\relax +%% +%% End of file 'berling.sty' diff --git a/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sub b/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sub new file mode 100644 index 00000000000..940df499b99 --- /dev/null +++ b/Master/texmf-dist/doc/support/fontools/examples/berling/berling.sub @@ -0,0 +1,10 @@ +zero;00F8 +one;00F9 +two;00FA +three;00FB +four;00FC +five;00FD +six;00FE +seven;00FF +eight;0100 +nine;0101 diff --git a/Master/texmf-dist/doc/support/fontools/examples/berling/makeberling b/Master/texmf-dist/doc/support/fontools/examples/berling/makeberling new file mode 100644 index 00000000000..36c8f832dfd --- /dev/null +++ b/Master/texmf-dist/doc/support/fontools/examples/berling/makeberling @@ -0,0 +1,70 @@ +#!/bin/sh + +TEXMF="./" + +mkdir -p "${TEXMF}fonts/afm/monotype/berling/" +mkdir -p "${TEXMF}fonts/enc/dvips/berling/" +mkdir -p "${TEXMF}fonts/map/dvips/berling/" +mkdir -p "${TEXMF}fonts/tfm/monotype/berling/" +mkdir -p "${TEXMF}fonts/truetype/monotype/berling/" +mkdir -p "${TEXMF}fonts/vf/monotype/berling/" +mkdir -p "${TEXMF}tex/latex/monotype/berling/" + +# +# By default, Monotype Berling uses oldstyle figures; +# `berling.sub' replaces these with normal (lining) figures. +# +# In the second line, we specify `-f onum' (even though Berling doesn't +# support features) to force the output files to have a `j' appended +# to their filenames; otherwise they would clobber the output of the +# first call to `cmap2enc'. +# +cmap2enc -x berling.sub berling.ttf t1.enc +cmap2enc -f onum berling.ttf t1.enc +cmap2enc berling.ttf ts1.enc + +for TTF in *.ttf +do + font2afm "$TTF" +done + +rm berling.map +afm2afm -e t1-berling.enc -o rmbrr9e.afm berling.afm >>berling.map +afm2afm -e t1-berling.enc -o rmbrri9e.afm berlingi.afm >>berling.map +afm2afm -e t1-berling.enc -o rmbrb9e.afm berlingb.afm >>berling.map +afm2afm -e t1-berling.enc -o rmbrbi9e.afm berlingz.afm >>berling.map + +afm2afm -e t1j-berling.enc -o rmbrrj9d.afm berling.afm >>berling.map +afm2afm -e t1j-berling.enc -o rmbrrij9d.afm berlingi.afm >>berling.map +afm2afm -e t1j-berling.enc -o rmbrbj9d.afm berlingb.afm >>berling.map +afm2afm -e t1j-berling.enc -o rmbrbij9d.afm berlingz.afm >>berling.map + +afm2afm -e ts1-berling.enc -o rmbrr9c.afm berling.afm >>berling.map +afm2afm -e ts1-berling.enc -o rmbrri9c.afm berlingi.afm >>berling.map +afm2afm -e ts1-berling.enc -o rmbrb9c.afm berlingb.afm >>berling.map +afm2afm -e ts1-berling.enc -o rmbrbi9c.afm berlingz.afm >>berling.map + +tex mbr_fnst.tex + +for PL in *.pl +do + pltotf "$PL" +done + +for VPL in *.vpl +do + vptovf "$VPL" +done + +rm *.pl *.vpl rmbr*.afm rmbr*.mtx resetberling-*.mtx + +mv *.afm "${TEXMF}/fonts/afm/monotype/berling/" +mv *.enc "${TEXMF}/fonts/enc/dvips/berling/" +mv *.map "${TEXMF}/fonts/map/dvips/berling/" +mv *.tfm "${TEXMF}/fonts/tfm/monotype/berling/" +cp *.ttf "${TEXMF}/fonts/truetype/monotype/berling/" +mv *.vf "${TEXMF}/fonts/vf/monotype/berling/" +mv *.fd "${TEXMF}/tex/latex/monotype/berling/" +cp *.sty "${TEXMF}/tex/latex/monotype/berling/" + +texhash ${TEXMF} diff --git a/Master/texmf-dist/doc/support/fontools/examples/berling/mbr_fnst.tex b/Master/texmf-dist/doc/support/fontools/examples/berling/mbr_fnst.tex new file mode 100644 index 00000000000..8a991f04319 --- /dev/null +++ b/Master/texmf-dist/doc/support/fontools/examples/berling/mbr_fnst.tex @@ -0,0 +1,62 @@ +\input fontinst.sty +\needsfontinstversion{1.900} + + + +\installfonts + +\installfamily{T1}{mbrx}{\hyphenchar\font="7F} + +\installfont{mbrr9e} + {rmbrr9e,resetberling-t1,newlatin}{t1}{T1}{mbrx}{m}{n}{} +\installfont{mbrri9e} + {rmbrri9e,resetberling-t1,newlatin}{t1}{T1}{mbrx}{m}{it}{} +\installfont{mbrb9e} + {rmbrb9e,resetberling-t1,newlatin}{t1}{T1}{mbrx}{b}{n}{} +\installfont{mbrbi9e} + {rmbrbi9e,resetberling-t1,newlatin}{t1}{T1}{mbrx}{b}{it}{} + + + +\installfamily{T1}{mbrj}{\hyphenchar\font="7F} + +\installfont{mbrrj9d} + {rmbrrj9d,resetberling-t1j,newlatin}{t1}{T1}{mbrj}{m}{n}{} +\installfont{mbrrij9d} + {rmbrrij9d,resetberling-t1j,newlatin}{t1}{T1}{mbrj}{m}{it}{} +\installfont{mbrbj9d} + {rmbrbj9d,resetberling-t1j,newlatin}{t1}{T1}{mbrj}{b}{n}{} +\installfont{mbrbij9d} + {rmbrbij9d,resetberling-t1j,newlatin}{t1}{T1}{mbrj}{b}{it}{} + + + +\installfamily{TS1}{mbrx}{} + +\installfont{mbrr9c} + {rmbrr9c,resetberling-ts1,rmbrrj9d,resetberling-t1j,resetosf,textcomp} + {ts1}{TS1}{mbrx}{m}{n}{} +\installfont{mbrri9c} + {rmbrri9c,resetberling-ts1,rmbrrij9d,resetberling-t1j,resetosf,textcomp} + {ts1}{TS1}{mbrx}{m}{it}{} +\installfont{mbrb9c} + {rmbrb9c,resetberling-ts1,rmbrbj9d,resetberling-t1j,resetosf,textcomp} + {ts1}{TS1}{mbrx}{b}{n}{} +\installfont{mbrbi9c} + {rmbrbi9c,resetberling-ts1,rmbrbij9d,resetberling-t1j,resetosf,textcomp} + {ts1}{TS1}{mbrx}{b}{it}{} + + + +\installfamily{TS1}{mbrx}{} + +\installfontas{mbrr9c}{TS1}{mbrj}{m}{n}{} +\installfontas{mbrri9c}{TS1}{mbrj}{m}{it}{} +\installfontas{mbrb9c}{TS1}{mbrj}{b}{n}{} +\installfontas{mbrbi9c}{TS1}{mbrj}{b}{it}{} + + + +\endinstallfonts + +\bye |