diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-17 21:45:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-17 21:45:56 +0000 |
commit | 05e947423566a6406944b8890c746e5783a99e32 (patch) | |
tree | 980d8adca286b6275b1276c714c1ba5040e92210 /Master/texmf-dist/source/fonts/arev/sfdtokernaccent | |
parent | 46eb901cbbe455e620ba4889d631424de2c23d84 (diff) |
arev fonts update
git-svn-id: svn://tug.org/texlive/trunk@1868 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/fonts/arev/sfdtokernaccent')
-rw-r--r-- | Master/texmf-dist/source/fonts/arev/sfdtokernaccent | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/fonts/arev/sfdtokernaccent b/Master/texmf-dist/source/fonts/arev/sfdtokernaccent new file mode 100644 index 00000000000..1e787b867d6 --- /dev/null +++ b/Master/texmf-dist/source/fonts/arev/sfdtokernaccent @@ -0,0 +1,63 @@ +#!/bin/bash + +# Bash script to extract kerning info for accents from sfd file that is passed in on standard input + +# SYNTAX: +# cat sfdFile | sfdtokernaccent sfdFile KernAccentMTXfile + +sfdFile=$1 +KernFile=$2 + +echo "Creating accent kerns $KernFile from $sfdFile" + +echo "% accent kerns $KernFile " > $KernFile +echo "% Created by sfdtokernaccent from $sfdFile for accent kerning" >> $KernFile +echo "% on `date`." >> $KernFile + +echo "\relax" >> $KernFile +echo "\metrics" >> $KernFile + +read LineIn1 LineIn2 LineIn3 LineIn4 LineInRest +ErrorVal=$? + +Char="" +Width=0 +AccentPos=0 + +while [ $ErrorVal -eq 0 ] +do + if [ "$LineIn1" = "StartChar:" ] + then + Char=$LineIn2 + fi + if [ "$LineIn1" = "Width:" ] + then + Width=$LineIn2 + fi + if [ "$LineIn1" = "AnchorPoint:" ] + then + if [ "$LineIn2" = '"TopCap"' ] + then + AccentPos=$LineIn3 + #echo "found: $Char, $Width, $AccentPos" + echo "\\fixaccentkern{$Char}{$AccentPos} % Width=$Width" >> $KernFile + fi + fi + if [ "$LineIn1" = "AnchorPoint:" ] + then + if [ "$LineIn2" = '"Top"' ] + then + AccentPos=$LineIn3 + #echo "found: $Char, $Width, $AccentPos" + echo "\\fixaccentkern{$Char}{$AccentPos} % Width=$Width" >> $KernFile + fi + fi + + + read LineIn1 LineIn2 LineIn3 LineIn4 LineInRest + ErrorVal=$? +done + +echo "\endmetrics" >> $KernFile + +echo "Done." |