[gentium-commits] [SCM] gentium updated: r48 - trunk/test/type1/Scripts
Pavel Far??
INVALID.NOREPLY at gnu.org.ua
Wed Mar 23 17:53:28 CET 2022
Author: pavel
Date: 2022-03-23 16:53:28 +0000 (Wed, 23 Mar 2022)
New Revision: 48
Modified:
trunk/test/type1/Scripts/Makefile
trunk/test/type1/Scripts/README
Log:
add test for duplicate extra kerning pairs
Unfortunately, there are such duplicate kerning pairs.
Fortunately, it has no effect for the resulting fonts.
Modified: trunk/test/type1/Scripts/Makefile
===================================================================
--- trunk/test/type1/Scripts/Makefile 2022-03-23 13:53:03 UTC (rev 47)
+++ trunk/test/type1/Scripts/Makefile 2022-03-23 16:53:28 UTC (rev 48)
@@ -1,7 +1,7 @@
AFM_PATH = '../../../gentium/fonts/afm/public/gentium-tug/'
BUILD_PATH = '../../../gentium/source/fonts/gentium-tug/type1'
-all: count missing
+all: count missing duplicates
count:
# print the number of extra kerning pairs
@@ -13,3 +13,10 @@
echo " processing: $$i"; \
TestMissing/test_missing_chars.py $(AFM_PATH)/$$i $(BUILD_PATH)/$${i/.afm/-extra.afm}; \
done
+
+duplicates:
+ # print duplicate items in the extra kerning pairs (if present)
+ for i in $(BUILD_PATH)/*-extra.afm; do \
+ echo $$i; \
+ sort $$i | uniq -d; \
+ done
Modified: trunk/test/type1/Scripts/README
===================================================================
--- trunk/test/type1/Scripts/README 2022-03-23 13:53:03 UTC (rev 47)
+++ trunk/test/type1/Scripts/README 2022-03-23 16:53:28 UTC (rev 48)
@@ -10,12 +10,12 @@
Usage
=====
-make [ count | missing ]
+make [ count | missing | duplicates]
count
Print the number of extra kerning pairs in the individual fonts. The extra
kerning pairs for some fonts would have the value of 0 and these are
- eliminates.
+ eliminated.
This is useful for the creation of the samples.
@@ -35,3 +35,6 @@
detect that the name a.sc no longer exists in the fonts.
The missing characters (if any) are written to the screen.
+
+duplicates
+ Check if there are some kerning pairs twice in the extra kerning pairs.
More information about the gentium-commits
mailing list.