diff options
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xcharter/altone.py')
-rwxr-xr-x | Master/texmf-dist/doc/fonts/xcharter/altone.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/altone.py b/Master/texmf-dist/doc/fonts/xcharter/altone.py index e79b3da3a8c..f2a255a3691 100755 --- a/Master/texmf-dist/doc/fonts/xcharter/altone.py +++ b/Master/texmf-dist/doc/fonts/xcharter/altone.py @@ -9,8 +9,10 @@ encfiles=set() enclst=[] enclstt1=[] enclstly1=[] +enclstot1=[] encfilest1=set() encfilesly1=set() +encfilesot1=set() newlines=[] afmcmds=[] vflst=[] @@ -23,6 +25,8 @@ with open(tmfv+"/fonts/map/dvips/xcharter/XCharter.map",'r') as f: if (enc[-4:]==".enc") and (enc[:4]=="xch_"): if "-ly1-" in line: enclstly1.append(enc) + elif "-ot1-" in line: + enclstot1.append(enc) else: enclstt1.append(enc) h=tmp[5][1:-4] # psfile, without .pfb or < @@ -33,6 +37,7 @@ with open(tmfv+"/fonts/map/dvips/xcharter/XCharter.map",'r') as f: encfilest1=set(enclstt1) encfilesly1=set(enclstly1) +encfilesot1=set(enclstot1) for f in sorted(encfilest1): with open(tmfv+"/fonts/enc/dvips/xcharter/"+f,'r') as g: tmp = g.read() @@ -68,7 +73,9 @@ with open(tmfv+"/fonts/map/dvips/xcharter/XCharter.map",'r') as f: tmp[4]="<["+enc # encoding file, prefixed by <[ newlines.append(' '.join(tmp)) h=tmp[5][1:-4] # psfile, without .pfb or < - a=tmp[0][:-6] # name of vf + a=tmp[0] + if a[-6:]=="--base": + a=tmp[0][:-6] # name of vf vflst.append(a) s="/usr/texbin/afm2tfm "+h+" -T "+tmfv+"/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0] afmcmds.append(s) |