summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xits
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-13 01:15:06 +0000
committerKarl Berry <karl@freefriends.org>2012-02-13 01:15:06 +0000
commitdda1f124cd7e9afd1be7dacbbec9c86495bce45c (patch)
tree6a144d66c1aec9d1d693aa109a95453dbb7a2215 /Master/texmf-dist/doc/fonts/xits
parent95377e23ad7fdb22ab767a8800c59663b195eff0 (diff)
xits 1.104 (12feb12)
git-svn-id: svn://tug.org/texlive/trunk@25378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xits')
-rw-r--r--Master/texmf-dist/doc/fonts/xits/FONTLOG.txt5
-rw-r--r--Master/texmf-dist/doc/fonts/xits/Makefile9
-rwxr-xr-xMaster/texmf-dist/doc/fonts/xits/postprocess.py27
3 files changed, 38 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/fonts/xits/FONTLOG.txt b/Master/texmf-dist/doc/fonts/xits/FONTLOG.txt
index ce4f085feb0..f56135383a1 100644
--- a/Master/texmf-dist/doc/fonts/xits/FONTLOG.txt
+++ b/Master/texmf-dist/doc/fonts/xits/FONTLOG.txt
@@ -192,6 +192,11 @@ http://github.com/khaledhosny/xits-math
ChangeLog
----------
+12 Feb 2012 (Khaled Hosny) <XITS> Version 1.104
+- Fix various warnings reported vy `compareFamily` tool of AFDKO
+- Fix primes size so that base and superscripted primes are identical in size
+ and a bit smaller than before.
+
29 Nov 2011 (Khaled Hosny) <XITS> Version 1.103
- Remove erroneous dots from U+2A2B and add U+2A2C to XITS Bold
diff --git a/Master/texmf-dist/doc/fonts/xits/Makefile b/Master/texmf-dist/doc/fonts/xits/Makefile
index 21b935540d0..520900f6ef5 100644
--- a/Master/texmf-dist/doc/fonts/xits/Makefile
+++ b/Master/texmf-dist/doc/fonts/xits/Makefile
@@ -1,5 +1,5 @@
NAME=xits
-VERSION=1.103
+VERSION=1.104
SRC=sources
DOC=documentation
@@ -7,6 +7,7 @@ DOCSRC=$(DOC)/$(DOC)-$(SRC)
DIST=$(NAME)-$(VERSION)
FF=fontforge -lang=ff
+POSTPROCESS=./postprocess.py
FFLAGES=0x200000
SCRIPT='Open($$1); MergeFeature("$(SRC)/$(FEA)");\
SetFontNames("","","","","","$(VERSION)");\
@@ -25,9 +26,11 @@ all: otf
otf: $(OTF)
-%.otf: $(SRC)/%.sfd
+%.otf: $(SRC)/%.sfd Makefile $(POSTPROCESS)
@echo "Building $@"
@$(FF) -c $(SCRIPT) $< $@ 2>/dev/stdout 1>/dev/stderr | tail -n +4
+ @$(POSTPROCESS) $@
+ @mv $@.post $@
doc: $(PDF)
@@ -49,7 +52,7 @@ dist: $(OTF) $(PDF) FONTLOG.txt
@cp $(OTF) $(DIST)
@cp -r $(PDF) $(DIST)/$(DOC)
@cp -r $(TEX) $(DIST)/$(DOCSRC)
- @cp -r Makefile OFL-FAQ.txt OFL.txt FONTLOG.txt tex $(DIST)
+ @cp -r $(POSTPROCESS) Makefile OFL-FAQ.txt OFL.txt FONTLOG.txt tex $(DIST)
@cp README.md $(DIST)/README.txt
@zip -r $(DIST).zip $(DIST)
diff --git a/Master/texmf-dist/doc/fonts/xits/postprocess.py b/Master/texmf-dist/doc/fonts/xits/postprocess.py
new file mode 100755
index 00000000000..af04a5fd7c2
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/xits/postprocess.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+import sys
+import warnings
+from fontTools import ttLib
+
+# suppress noisy DeprecationWarnings in fontTools
+warnings.filterwarnings("ignore",category=DeprecationWarning)
+
+font = ttLib.TTFont(sys.argv[1])
+
+MS_Platform_ID = 3
+MS_Enc_ID = 1
+MS_Lang_US_ID = 0x409
+
+FullName_ID = 4
+
+name = font["name"]
+cff = font["CFF "]
+
+psname = cff.cff.fontNames[0]
+
+# set MS full name to psname
+# per name table spec
+fullname = name.getName(FullName_ID, MS_Platform_ID, MS_Enc_ID, MS_Lang_US_ID)
+fullname.string = psname.encode("utf_16_be")
+
+font.save(sys.argv[1] + ".post")