freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] more Unicode character blocks for CJK autofitting


From: Werner LEMBERG
Subject: [ft-devel] more Unicode character blocks for CJK autofitting
Date: Thu, 07 Apr 2011 07:24:43 +0200 (CEST)

I've just updated the ranges for the CJK autofitter as below.  In
particular, I've added Hangul Korean syllables which have been missing
(I no longer can remember whether this was intentional).  Please
comment.

If there aren't objections, I'll release a new FreeType version within
a week (hopefully, Toshiya-san finds time to review his configuration
patch).


    Werner


======================================================================


diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c
index d8aa52d..af4597c 100644
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -1443,18 +1443,19 @@
   /*************************************************************************/
 
 
+  /* this corresponds to Unicode 6.0 */
+
   static const AF_Script_UniRangeRec  af_cjk_uniranges[] =
   {
-#if 0
-    AF_UNIRANGE_REC(  0x0100UL,  0xFFFFUL ),  /* why this? */
-#endif
     AF_UNIRANGE_REC(  0x2E80UL,  0x2EFFUL ),  /* CJK Radicals Supplement       
          */
     AF_UNIRANGE_REC(  0x2F00UL,  0x2FDFUL ),  /* Kangxi Radicals               
          */
+    AF_UNIRANGE_REC(  0x2FF0UL,  0x2FFFUL ),  /* Ideographic Description 
Characters      */
     AF_UNIRANGE_REC(  0x3000UL,  0x303FUL ),  /* CJK Symbols and Punctuation   
          */
     AF_UNIRANGE_REC(  0x3040UL,  0x309FUL ),  /* Hiragana                      
          */
     AF_UNIRANGE_REC(  0x30A0UL,  0x30FFUL ),  /* Katakana                      
          */
     AF_UNIRANGE_REC(  0x3100UL,  0x312FUL ),  /* Bopomofo                      
          */
     AF_UNIRANGE_REC(  0x3130UL,  0x318FUL ),  /* Hangul Compatibility Jamo     
          */
+    AF_UNIRANGE_REC(  0x3190UL,  0x319FUL ),  /* Kanbun                        
          */
     AF_UNIRANGE_REC(  0x31A0UL,  0x31BFUL ),  /* Bopomofo Extended             
          */
     AF_UNIRANGE_REC(  0x31C0UL,  0x31EFUL ),  /* CJK Strokes                   
          */
     AF_UNIRANGE_REC(  0x31F0UL,  0x31FFUL ),  /* Katakana Phonetic Extensions  
          */
@@ -1463,10 +1464,19 @@
     AF_UNIRANGE_REC(  0x3400UL,  0x4DBFUL ),  /* CJK Unified Ideographs 
Extension A      */
     AF_UNIRANGE_REC(  0x4DC0UL,  0x4DFFUL ),  /* Yijing Hexagram Symbols       
          */
     AF_UNIRANGE_REC(  0x4E00UL,  0x9FFFUL ),  /* CJK Unified Ideographs        
          */
+    AF_UNIRANGE_REC(  0xA960UL,  0xA97FUL ),  /* Hangul Jamo Extended-A        
          */
+    AF_UNIRANGE_REC(  0xAC00UL,  0xD7AFUL ),  /* Hangul Syllables              
          */
+    AF_UNIRANGE_REC(  0xD7B0UL,  0xD7FFUL ),  /* Hangul Jamo Extended-B        
          */
     AF_UNIRANGE_REC(  0xF900UL,  0xFAFFUL ),  /* CJK Compatibility Ideographs  
          */
+    AF_UNIRANGE_REC(  0xFE10UL,  0xFE1FUL ),  /* Vertical forms                
          */
     AF_UNIRANGE_REC(  0xFE30UL,  0xFE4FUL ),  /* CJK Compatibility Forms       
          */
     AF_UNIRANGE_REC(  0xFF00UL,  0xFFEFUL ),  /* Halfwidth and Fullwidth Forms 
          */
+    AF_UNIRANGE_REC( 0x1B000UL, 0x1B0FFUL ),  /* Kana Supplement               
          */
+    AF_UNIRANGE_REC( 0x1D300UL, 0x1D35FUL ),  /* Tai Xuan Hing Symbols         
          */
+    AF_UNIRANGE_REC( 0x1F200UL, 0x1F2FFUL ),  /* Enclosed Ideographic 
Supplement         */
     AF_UNIRANGE_REC( 0x20000UL, 0x2A6DFUL ),  /* CJK Unified Ideographs 
Extension B      */
+    AF_UNIRANGE_REC( 0x2A700UL, 0x2B73FUL ),  /* CJK Unified Ideographs 
Extension C      */
+    AF_UNIRANGE_REC( 0x2B740UL, 0x2B81FUL ),  /* CJK Unified Ideographs 
Extension D      */
     AF_UNIRANGE_REC( 0x2F800UL, 0x2FA1FUL ),  /* CJK Compatibility Ideographs 
Supplement */
     AF_UNIRANGE_REC(       0UL,       0UL )
   };



reply via email to

[Prev in Thread] Current Thread [Next in Thread]