[gentium-commits] [SCM] gentium updated: r76 - trunk/gentium/source/fonts/gentium-tug/type1

Pavel Far?? INVALID.NOREPLY at gnu.org.ua
Fri Apr 1 00:16:33 CEST 2022


Author: pavel
Date: 2022-03-31 22:16:32 +0000 (Thu, 31 Mar 2022)
New Revision: 76

Modified:
   trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py
Log:
fix bug in creation of Cyrillic extra kerns

The name of the characters used small letters in hexadecimal
representation. For example the name for the Cyrillic letter 'o'
was 'uni043e'. Kerning pairs with such letters were ignored in
the fonts. When splitting the extra kerning pairs, the pairs
with such letters ended in 'rest' and not in the 'T2A' encoding.

Changed to capital letters (uni043E) and problems solved.


Modified: trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py
===================================================================
--- trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py	2022-03-31 21:39:13 UTC (rev 75)
+++ trunk/gentium/source/fonts/gentium-tug/type1/kerncorrection.py	2022-03-31 22:16:32 UTC (rev 76)
@@ -319,7 +319,7 @@
 
     def char_to_uni(self, c):
         """ Convert character to 'uniXXXX' string """
-        return "uni{0:04x}".format(ord(c))
+        return "uni{0:04X}".format(ord(c))
 
     # TODO: Test the kern_pairs_cyrillic array. First pair must be Latin letters,
     #       all the remaining pairs must be Cyrillic letters.



More information about the gentium-commits mailing list.