summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py')
-rwxr-xr-xMaster/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py b/Master/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py
new file mode 100755
index 00000000000..bc44f1cd859
--- /dev/null
+++ b/Master/texmf-dist/source/fonts/gentium-tug/type1/afmcreator.py
@@ -0,0 +1,22 @@
+#! /usr/bin/env python
+# This file is part of the Gentium package for TeX.
+# It is licensed under the Expat License, see doc//README for details.
+
+import os, sys
+
+creatortext = "Comment Creator: TeX Users Group\n"
+
+tempname = "temp.afm"
+
+fin = open(sys.argv[1], "r")
+fout = open(tempname, "w")
+while True:
+ s = fin.readline()
+ if s == "": break # end of file
+ fout.write(s)
+ if s.find("Comment Creation Date") == 0 :
+ fout.write(creatortext) # Creator after Creation Date
+fin.close()
+fout.close()
+
+os.rename(tempname, sys.argv[1])