Dear All (and Ivan Pascal esp.),

when mkfontscale tests a font for covering a koi8 encoding,
it ignores the lack of linedrawing and pseudo-math characters
in the font.
But the lack of 0x00b2, SUPERSCRIPT TWO, is not ignored.
Thus some fonts, for example PS fonts in Adobe Standard Cyrillic
encoding, do not cover koi8-r and koi8-u encodings
(from mkfontscale's point of view).
Is it a correct behavior?

The patch fixes that, plus adds one more koi8 variant and
corrects a typo in comment.

                    Sincerely, Michail
--- mkfontscale.c.orig  Sun Nov 16 11:57:09 2003
+++ mkfontscale.c       Sun Nov 16 13:13:38 2003
@@ -19,7 +19,7 @@
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   THE SOFTWARE.
 */
-/* $XFree86: xc/programs/mkfontscale/mkfontscale.c,v 1.14 2003/10/24 20:38:13 tsi Exp 
$ */
+/*_$XFree86: xc/programs/mkfontscale/mkfontscale.c,v 1.14 2003/10/24 20:38:13 tsi Exp 
$ */

 #include <stdio.h>
 #include <stdlib.h>
@@ -57,7 +57,7 @@
     { "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5",
       "iso8859-6", "iso8859-7", "iso8859-8", "iso8859-9", "iso8859-10",
       "iso8859-11", "iso8859-12", "iso8859-13", "iso8859-14", "iso8859-15",
-      "koi8-r", "koi8-u", "koi8-ru", "koi8-e",
+      "koi8-r", "koi8-u", "koi8-ru", "koi8-e", "koi8-uni",
       "tis620-2",
       "adobe-standard", "adobe-symbol",
       "ibm-cp437", "microsoft-cp1252",
@@ -974,7 +974,7 @@
          - it is a matrix encoding and has no more than one column.

        For small encodings using Unicode indices, we require perfect
-       coverage except for CODE_IGNORED and KOI-8 IBM-PC compatibility.
+       coverage except for CODE_IGNORED and KOI8 IBM-PC compatibility.

        For large encodings, we require coverage up to bigEncodingFuzz.

@@ -1051,7 +1051,7 @@
                 for(i = encoding->first; i < encoding->size; i++) {
                     c = FontEncRecode(i, mapping);
                     if(CODE_IGNORED(c) ||
-                       (koi8 && c >= 0x2200 && c < 0x2600)) {
+                       (koi8 && (c >= 0x2200 && c < 0x2600 || c == 0x00b2))) {
                         continue;
                     } else {
                         if(FT_Get_Char_Index(face, c) == 0) {
_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to