]> git.wh0rd.org - fontconfig.git/commitdiff
From James Su -- only part of page 0xff is Latin
authorKeith Packard <keithp@keithp.com>
Sun, 20 Apr 2003 04:44:09 +0000 (04:44 +0000)
committerKeith Packard <keithp@keithp.com>
Sun, 20 Apr 2003 04:44:09 +0000 (04:44 +0000)
src/fcfreetype.c

index 70642b5014a62f46b4dd977313119a1a97855de9..df78b6e6f845dcc39069a13cbe069d6f2b4a6c27 100644 (file)
@@ -124,7 +124,8 @@ FcUcs4IsLatin (FcChar32 ucs4)
        return FcTrue;
     if (page == 0xfb)
        return FcTrue;
-    if (page == 0xff)
+    /* halfwidth forms, don't include kana or white parens */
+    if (0xff01 <= ucs4 && ucs4 <= 0xff5e)
        return FcTrue;
     return FcFalse;
 }