summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-28 21:44:45 +0000
committerKarl Berry <karl@freefriends.org>2014-04-28 21:44:45 +0000
commitc9e83940efad432dab8699093b00a8910afada3c (patch)
tree8cc2f0e256f21c797553fb2a8a064649c92ceb97 /Master/texmf-dist/doc
parent518f6102103535da51b336244decbb9cef77f33b (diff)
xcharter (28apr14)
git-svn-id: svn://tug.org/texlive/trunk@33729 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/fonts/xcharter/README11
-rwxr-xr-xMaster/texmf-dist/doc/fonts/xcharter/altone.py55
2 files changed, 63 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/README b/Master/texmf-dist/doc/fonts/xcharter/README
index c0e6ab9bc8b..f10945b9295 100644
--- a/Master/texmf-dist/doc/fonts/xcharter/README
+++ b/Master/texmf-dist/doc/fonts/xcharter/README
@@ -22,7 +22,12 @@ Original Bitstream Free font license:
The font modifications are Copyright (c) 2013, Michael Sharpe.
-Current version: 1.03
+Current version: 1.04
+
+Changes in version 1.04
+Substantial reworking of kerning tables in small caps.
+Substantial revision of italic and bold italic oldstyle figures.
+Revised method for making support files with alternate form of oldstyle `one'.
Changes in version 1.03
Minor changes to kerning tables in small caps.
@@ -36,7 +41,7 @@ The method of generating the support files has changed from version 1.00, and is
The otf fonts contain all the kerning and other tables. Should you wish to modify these yourself, the following outline of the method should be followed.
-Make four copies of the otf files and rename them internally and externally to XCharter1... Place the 8 otf files in a new folder along with a subfolder named texmf. Then run the command
+Place the 4 otf files in a new folder along with a subfolder named texmf. Then run the command
/usr/texbin/autoinst --noupdmap --noswash --notitling --noornaments --target=./texmf --encoding=TS1,T1,LY1 --vendor=public --typeface=xcharter *.otf
@@ -50,7 +55,7 @@ pushd texmf/fonts/enc/dvips/xcharter
for f in *.enc; do mv ${f} xch${f:1}; done
popd
-Discard all newly generated XCharter1*.tfm EXCEPT for the 32 files containing -tosf and not -ts1. Do the same for XCharter1*.vf. These are referenced by the fd files in the package.
+To make the alternate form of osf `one' available, run the python script altone.py.
Please send comments and bug reports or suggestions for improvement to
diff --git a/Master/texmf-dist/doc/fonts/xcharter/altone.py b/Master/texmf-dist/doc/fonts/xcharter/altone.py
new file mode 100755
index 00000000000..48de0bf4f4c
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/xcharter/altone.py
@@ -0,0 +1,55 @@
+#!/usr/bin/env python
+
+import os, sys
+
+# Run this in the root directory containing afm files and a texmf branch
+encfiles=set()
+enclst=[]
+newlines=[]
+afmcmds=[]
+vflst=[]
+with open("texmf/fonts/map/dvips/xcharter/XCharter.map",'r') as f:
+ for line in f:
+ if "-tosf-" in line:
+ tmp = line.split()
+ enc=tmp[4][2:]
+ if (enc[-4:]==".enc") and (enc[:4]=="xch_"):
+ enc=enc[:3]+"1"+enc[3:]
+ enclst.append(enc)
+ tmp[0]="XCharter1"+tmp[0][8:]
+ tmp[2]=tmp[2][:8]+"1"+tmp[2][8:] # encoding name
+ 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
+ vflst.append(a)
+ s="/usr/texbin/afm2tfm "+h+" -T texmf/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0]
+ afmcmds.append(s)
+
+#print newlines
+encfiles=set(enclst)
+#print sorted(encfiles)
+#sys.exit()
+for f in sorted(encfiles):
+ f0=f[:3]+f[4:] # remove "1"
+ os.system("/bin/cp -fp texmf/fonts/enc/dvips/xcharter/"+f0+" texmf/fonts/enc/dvips/xcharter/"+f)
+ with open("texmf/fonts/enc/dvips/xcharter/"+f,'r') as g:
+ tmp = g.read()
+ tmp=tmp.replace("AutoEnc","AutoEnc1")
+ tmp=tmp.replace("one.oldstyle","one.Alt.oldstyle")
+ with open("texmf/fonts/enc/dvips/xcharter/"+f,'w') as g:
+ g.write(tmp)
+
+#Finally, write the afmcmds and update mapfile
+for j in range(len(vflst)):
+ a=vflst[j]
+ s=afmcmds[j]
+ print s
+ if os.system(s)==0:
+ if os.system("/usr/texbin/vptovf "+a)==0:
+ os.system("/bin/cp -fp "+a+".tfm texmf/fonts/tfm/public/xcharter")
+ os.system("/bin/cp -fp "+a+".vf texmf/fonts/vf/public/xcharter")
+
+with open("texmf/fonts/map/dvips/xcharter/XCharter.map",'a+') as f:
+ for s in newlines:
+ f.write(s+'\n') \ No newline at end of file