[gentium-commits] [SCM] gentium updated: r91 - trunk/gentium/source/fonts/gentium-tug/type1
Pavel Far??
INVALID.NOREPLY at gnu.org.ua
Wed Apr 6 22:02:05 CEST 2022
Author: pavel
Date: 2022-04-06 20:02:05 +0000 (Wed, 06 Apr 2022)
New Revision: 91
Modified:
trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py
Log:
refactor kerncorrection.py a little
Modified: trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py
===================================================================
--- trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py 2022-04-06 19:44:57 UTC (rev 90)
+++ trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py 2022-04-06 20:02:05 UTC (rev 91)
@@ -312,14 +312,11 @@
a = fromreader.getkerns("KPX [A-Z] [A-Z]")
for s in a:
parts = s.split()
+ # Write two small caps
self.add_to_kern_lines("KPX " + parts[1].lower() + ".sc " + parts[2].lower() +
".sc " + str(int(round(SMALL_CAPS_CORRECTION * float(parts[3])))) +
'\n')
-
- def initial_cap(self, fromreader):
- a = fromreader.getkerns("KPX [A-Z] [A-Z]")
- for s in a:
- parts = s.split()
+ # Write capital letter + small cap
self.add_to_kern_lines("KPX " + parts[1] + " " + parts[2].lower() + ".sc " +
str(int(round(SMALL_CAPS_CORRECTION * float(parts[3])))) + '\n')
@@ -454,7 +451,6 @@
output_generator = KernWriter(output_file_name)
# letters without accents
output_generator.small_caps(fin)
-output_generator.initial_cap(fin)
output_generator.right_punctuation(fin)
output_generator.left_punctuation(fin)
# letters with accents
More information about the gentium-commits
mailing list.