[gentium-commits] [SCM] gentium updated: r51 - trunk/test/type1/Scripts
Pavel Far??
INVALID.NOREPLY at gnu.org.ua
Thu Mar 24 15:03:00 CET 2022
Author: pavel
Date: 2022-03-24 14:03:00 +0000 (Thu, 24 Mar 2022)
New Revision: 51
Modified:
trunk/test/type1/Scripts/Makefile
trunk/test/type1/Scripts/README
Log:
add test for differences in extra kerning pairs
Currently, all Italic fonts have the same extra kerning pairs
(with a different numerical value, of course); all upright fonts
have the same extra kerning pairs. Italic fonts have several
kerning pairs for Greek that are missing in the upright fonts.
Modified: trunk/test/type1/Scripts/Makefile
===================================================================
--- trunk/test/type1/Scripts/Makefile 2022-03-23 22:22:14 UTC (rev 50)
+++ trunk/test/type1/Scripts/Makefile 2022-03-24 14:03:00 UTC (rev 51)
@@ -1,8 +1,14 @@
-AFM_PATH = '../../../gentium/fonts/afm/public/gentium-tug/'
+AFM_PATH = '../../../gentium/fonts/afm/public/gentium-tug'
BUILD_PATH = '../../../gentium/source/fonts/gentium-tug/type1'
-all: count missing duplicates
+# variables for target 'diff'
+REGULAR = GentiumPlus-Regular.txt
+ITALIC = GentiumPlus-Italic.txt
+all:
+ # It doesn't make sense to use all the targets at the same time
+ echo Please, supply some parameter.
+
count:
# print the number of extra kerning pairs
wc -l $(BUILD_PATH)/*-extra.afm
@@ -20,3 +26,27 @@
echo $$i; \
sort $$i | uniq -d; \
done
+
+diff-clean:
+ # delete temporary files created for diff
+ rm Gentium*.txt
+
+diff:
+ # show differences in extra kerning pairs
+ # - make temporarty files
+ for i in $(BUILD_PATH)/*-extra.afm; do \
+ cut -f 2,3 -d " " $$i > $$(basename $${i/-extra.afm/.txt}); \
+ done
+ # - all upright styles should be the same
+ for i in *{Bold,Regular}.txt; do \
+ echo diff $(REGULAR) $$i; \
+ diff $(REGULAR) $$i; \
+ done
+ # - all italic styles should be the same
+ for i in *Italic.txt; do \
+ echo diff $(ITALIC) $$i; \
+ diff $(ITALIC) $$i; \
+ done
+ # - show differences between Regular and Italic style, suppress exit code of diff
+ echo diff $(REGULAR) $(ITALIC);
+ -diff $(REGULAR) $(ITALIC);
Modified: trunk/test/type1/Scripts/README
===================================================================
--- trunk/test/type1/Scripts/README 2022-03-23 22:22:14 UTC (rev 50)
+++ trunk/test/type1/Scripts/README 2022-03-24 14:03:00 UTC (rev 51)
@@ -10,7 +10,7 @@
Usage
=====
-make [ count | missing | duplicates]
+make [ count | missing | duplicates | diff | diff-clean ]
count
Print the number of extra kerning pairs in the individual fonts. The extra
@@ -38,3 +38,16 @@
duplicates
Check if there are some kerning pairs twice in the extra kerning pairs.
+
+diff
+ Check the differences between individual fonts. Currently all upright fonts
+ have the same extra kerning pairs and all italic styles have the same extra
+ kerning styles. The italic fonts have more kerning pairs. Some kerning pairs
+ for Greek in the upright fonts were eliminated, because their value was 0.
+
+ The generated files with the kerning pairs for individual fonts are kept in
+ the directory. They contain just the two characters of the kerning pair.
+ These files can be manually examined.
+
+diff-clean
+ Delete the files generated by 'make diff'.
More information about the gentium-commits
mailing list.