FreeType 1.31.1
This commit is contained in:
8
contrib/ttf2pk/scripts/README
Normal file
8
contrib/ttf2pk/scripts/README
Normal file
@@ -0,0 +1,8 @@
|
||||
In these subdirectories you can find diff files for various TeX
|
||||
implementations which add support for on-the-fly pk-generation using ttf2pk
|
||||
and hbf2gf (which is part of the CJK package for LaTeX 2e).
|
||||
|
||||
In case you don't have/want hbf2gf, simply comment out the relevant if-Block
|
||||
in the script.
|
||||
|
||||
For web2c 7.3 resp. teTeX 1.0 or newer, no patches are needed.
|
||||
63
contrib/ttf2pk/scripts/teTeX-0.4/MakeTeXPK.diff
Normal file
63
contrib/ttf2pk/scripts/teTeX-0.4/MakeTeXPK.diff
Normal file
@@ -0,0 +1,63 @@
|
||||
--- /root/scripts/teTeX-0.4/MakeTeXPK Sun Feb 23 22:12:05 1997
|
||||
+++ /home/ft/freetype/contrib/ttf2pk/scripts/teTeX-0.4/MakeTeXPK Sat Sep 5 07:57:34 1998
|
||||
@@ -80,6 +80,9 @@
|
||||
: ${MAKETEXDIR=$TEXMF/maketex}
|
||||
export TEXMF MAKETEXDIR
|
||||
|
||||
+unset cmd
|
||||
+unset psline
|
||||
+
|
||||
# grep for the font in $PSMAPFILE, if some ps-to-pk is claimed to be supported.
|
||||
# We have to figure out the name of the base font -- $NAME is probably
|
||||
# something like pplr, but it's rpplr or pplr0 or pplr8r that's in psfonts.map.
|
||||
@@ -91,7 +94,40 @@
|
||||
# some installations have set up gs in such a way that creating files
|
||||
# is only allowed if the parameter -DNOSAFER is used:
|
||||
GS_OPTIONS=-DNOSAFER; export GS_OPTIONS
|
||||
-else
|
||||
+fi
|
||||
+
|
||||
+# test for TTF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ ttf2pk -q $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "ttf2pk failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=ttf2pk # preferred mode for TDS would be `modeless'
|
||||
+ cmd=true
|
||||
+ psline=ttf2pk # suppress gftopk call
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# test for HBF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ hbf2gf -q -p $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "hbf2gf failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=hbf2gf # preferred mode for TDS would be `modeless'
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+if test -z "$cmd"; then
|
||||
# If an explicit mode is not supplied, try to guess. You can get a
|
||||
# list of extant modes from ftp.cs.umb.edu:pub/tex/modes.mf.
|
||||
if test -z "$MODE" || test "$MODE" = default; then
|
||||
@@ -141,7 +177,7 @@
|
||||
{ echo "$progname: could not mkdir $PKDESTDIR."; exit 1; }'
|
||||
eval "$mdir"
|
||||
|
||||
-echo "$progname: Running $cmd"
|
||||
+test "$cmd" = true || echo "$progname: Running $cmd"
|
||||
$cmd </dev/null || { echo "$progname: \`$cmd' failed." >&2; exit 1; }
|
||||
if test -z "$psline"; then
|
||||
test -r $GFNAME ||
|
||||
75
contrib/ttf2pk/scripts/web2c-6.1/MakeTeXPK.diff
Normal file
75
contrib/ttf2pk/scripts/web2c-6.1/MakeTeXPK.diff
Normal file
@@ -0,0 +1,75 @@
|
||||
--- MakeTeXPK.orig Sun Aug 16 08:05:07 1998
|
||||
+++ MakeTeXPK Tue Aug 18 07:53:57 1998
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-# original MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
+# MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
# Version of 12dec94.
|
||||
#
|
||||
# (If you change or delete the word `original' on the previous line,
|
||||
@@ -142,11 +142,52 @@
|
||||
test -d $TEMPDIR || mkdir $TEMPDIR
|
||||
cd $TEMPDIR || exit 1
|
||||
|
||||
+unset cmd
|
||||
+
|
||||
+# test for TTF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ ttf2pk -q $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "ttf2pk failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ test -z "$6" && DESTDIR="$DESTROOT/ttf2pk" # preferred mode for TDS
|
||||
+ # would be `modeless'
|
||||
+ echo "Successful call to ttf2pk" >&2
|
||||
+ cmd=ttf2pk
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# test for HBF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ hbf2gf -q -p $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "hbf2gf failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ test -z "$6" && DESTDIR="$DESTROOT/hbf2gf" # preferred mode for TDS
|
||||
+ # would be `modeless'
|
||||
+ echo "Successful call to hbf2gf" >&2
|
||||
+ cmd=hbf2gf
|
||||
+
|
||||
+ gftopk ./$GFNAME $PKNAME || exit 1
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
# grep for the font in $PSMAPFILE, if some ps-to-pk is claimed to be supported.
|
||||
# We have to figure out the name of the base font -- $NAME is probably
|
||||
# something like pplr, but it's rpplr or pplr0 or pplr8r that's in psfonts.map.
|
||||
-pattern="^r?$NAME"'(0|8r)?([ ]|$)'
|
||||
-test -n "$ps_to_pk" && egrep "$pattern" $PSMAPFILE >psline
|
||||
+if test -z "$cmd"; then
|
||||
+ pattern="^r?$NAME"'(0|8r)?([ ]|$)'
|
||||
+ test -n "$ps_to_pk" && egrep "$pattern" $PSMAPFILE > psline
|
||||
+fi
|
||||
+
|
||||
if test -s psline; then
|
||||
# This is a PostScript font.
|
||||
MODE=$ps_to_pk
|
||||
@@ -173,8 +214,9 @@
|
||||
export DVIPSHEADERS
|
||||
echo "$0: Running $cmd" >&2
|
||||
$cmd >&2 || { echo "$0: $ps_to_pk failed." >&2; exit 1; }
|
||||
+fi
|
||||
|
||||
-else
|
||||
+if test -z "$cmd"; then
|
||||
# Try Metafont.
|
||||
MFINPUTS="$MFINPUTS:$SAVEPWD"
|
||||
export MFINPUTS
|
||||
1
contrib/ttf2pk/scripts/web2c-6.1/README
Normal file
1
contrib/ttf2pk/scripts/web2c-6.1/README
Normal file
@@ -0,0 +1 @@
|
||||
This is for web2c-6.1 with the patch for kpathsea 2.6
|
||||
67
contrib/ttf2pk/scripts/web2c-7.0/MakeTeXPK.diff
Normal file
67
contrib/ttf2pk/scripts/web2c-7.0/MakeTeXPK.diff
Normal file
@@ -0,0 +1,67 @@
|
||||
--- MakeTeXPK.orig Sat Feb 8 15:52:00 1997
|
||||
+++ MakeTeXPK Tue Aug 18 07:58:22 1998
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-# original MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
+# MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
#
|
||||
# (If you change or delete the word `original' on the previous line,
|
||||
# installation won't write this script over yours.)
|
||||
@@ -44,15 +44,54 @@
|
||||
MODE=$5
|
||||
DEST=$6
|
||||
|
||||
+unset cmd
|
||||
+
|
||||
+# test for TTF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ ttf2pk -q $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "ttf2pk failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# test for HBF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ hbf2gf -q -p $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "hbf2gf failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+unset psline
|
||||
+
|
||||
# grep for the font in $PSMAPFILE. These are base font names, such as
|
||||
# rpplr (the original) or pplr0 (an interim step) or pplr8r (current).
|
||||
-pattern="^r?$NAME"'(0|8r)?([ ]|$)'
|
||||
-psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+if test -z "$cmd"; then
|
||||
+ pattern="^r?$NAME"'(0|8r)?([ ]|$)'
|
||||
+ psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+fi
|
||||
+
|
||||
if test -n "$psline"; then
|
||||
MODE=modeless
|
||||
# ps_to_pk set in MakeTeXcommon and/or MakeTeX.site.
|
||||
cmd="$ps_to_pk $NAME $DPI"
|
||||
-else
|
||||
+fi
|
||||
+
|
||||
+if test -z "$cmd"; then
|
||||
# Check that $BDPI and $MODE are consistent; if not, ignore the mode and
|
||||
# hope we can correctly guess it from bdpi. (People like to specify the
|
||||
# resolution on the command line, not the mode so much.)
|
||||
72
contrib/ttf2pk/scripts/web2c-7.1/MakeTeXPK.diff
Normal file
72
contrib/ttf2pk/scripts/web2c-7.1/MakeTeXPK.diff
Normal file
@@ -0,0 +1,72 @@
|
||||
--- MakeTeXPK.orig Fri Oct 31 09:30:54 1997
|
||||
+++ MakeTeXPK Tue Aug 18 08:01:33 1998
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-# original MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
+# MakeTeXPK -- make a new PK font, because one wasn't found.
|
||||
#
|
||||
# (If you change or delete the word `original' on the previous line,
|
||||
# installation won't write this script over yours.)
|
||||
@@ -57,11 +57,48 @@
|
||||
MODE=$5
|
||||
DEST=$6
|
||||
|
||||
+unset cmd
|
||||
+
|
||||
+# test for TTF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ ttf2pk -q $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "ttf2pk failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# test for HBF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ hbf2gf -q -p $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "hbf2gf failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+unset psline
|
||||
+
|
||||
# grep for the font in $PSMAPFILE. These are base font names, such as
|
||||
# rpplr (the original) or pplr0 (an interim step) or pplr8r (current).
|
||||
-: ${PSMAPFILE=`kpsewhich psfonts.map`}
|
||||
-pattern="^$NAME"'([ ]|$)'
|
||||
-psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+if test -z "$cmd"; then
|
||||
+ : ${PSMAPFILE=`kpsewhich psfonts.map`}
|
||||
+ pattern="^$NAME"'([ ]|$)'
|
||||
+ psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+fi
|
||||
+
|
||||
if test -n "$psline"; then
|
||||
MODE=modeless
|
||||
# ps_to_pk is set in MakeTeX.cnf
|
||||
@@ -100,7 +137,9 @@
|
||||
cmd="$ps_to_pk $NAME $DPI"
|
||||
;;
|
||||
esac
|
||||
-else
|
||||
+fi
|
||||
+
|
||||
+if test -z "$cmd"; then
|
||||
# Check that $BDPI and $MODE are consistent; if not, ignore the mode and
|
||||
# hope we can correctly guess it from bdpi. (People like to specify the
|
||||
# resolution on the command line, not the mode so much.)
|
||||
1
contrib/ttf2pk/scripts/web2c-7.1/README
Normal file
1
contrib/ttf2pk/scripts/web2c-7.1/README
Normal file
@@ -0,0 +1 @@
|
||||
The patch works with web2c-7.0 too (expect a fuzz offset).
|
||||
72
contrib/ttf2pk/scripts/web2c-7.2/mktexpk.diff
Normal file
72
contrib/ttf2pk/scripts/web2c-7.2/mktexpk.diff
Normal file
@@ -0,0 +1,72 @@
|
||||
--- mktexpk.orig Fri Feb 20 16:23:22 1998
|
||||
+++ mktexpk Tue Aug 18 08:04:40 1998
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
-# original mktexpk -- make a new PK font, because one wasn't found.
|
||||
+# mktexpk -- make a new PK font, because one wasn't found.
|
||||
#
|
||||
# (If you change or delete the word `original' on the previous line,
|
||||
# installation won't write this script over yours.)
|
||||
@@ -73,11 +73,48 @@
|
||||
|
||||
NAME=$1
|
||||
|
||||
+unset cmd
|
||||
+
|
||||
+# test for TTF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ ttf2pk -q $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "ttf2pk failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# test for HBF fonts
|
||||
+if test -z "$cmd"; then
|
||||
+ hbf2gf -q -p $NAME $DPI
|
||||
+ errstatus=$?
|
||||
+
|
||||
+ if test $errstatus -ne 2; then
|
||||
+ if test $errstatus -ne 0; then
|
||||
+ echo "hbf2gf failed" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ MODE=modeless
|
||||
+ cmd=true
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+unset psline
|
||||
+
|
||||
# grep for the font in $PSMAPFILE. These are base font names, such as
|
||||
# rpplr (the original) or pplr0 (an interim step) or pplr8r (current).
|
||||
-: ${PSMAPFILE=`kpsewhich psfonts.map`}
|
||||
-pattern="^$NAME"'([ ]|$)'
|
||||
-psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+if test -z "$cmd"; then
|
||||
+ : ${PSMAPFILE=`kpsewhich psfonts.map`}
|
||||
+ pattern="^$NAME"'([ ]|$)'
|
||||
+ psline=`egrep "$pattern" $PSMAPFILE`
|
||||
+fi
|
||||
+
|
||||
if test -n "$psline"; then
|
||||
MODE=modeless
|
||||
# ps_to_pk is set in mktex.opt
|
||||
@@ -116,7 +153,9 @@
|
||||
cmd="$ps_to_pk $NAME $DPI"
|
||||
;;
|
||||
esac
|
||||
-else
|
||||
+fi
|
||||
+
|
||||
+if test -z "$cmd"; then
|
||||
# Check that $BDPI and $MODE are consistent; if not, ignore the mode and
|
||||
# hope we can correctly guess it from bdpi. (People like to specify the
|
||||
# resolution on the command line, not the mode so much.)
|
||||
Reference in New Issue
Block a user