freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Re: differences in hinting between 2.3.1 and HEAD


From: Werner LEMBERG
Subject: Re: [ft-devel] Re: differences in hinting between 2.3.1 and HEAD
Date: Wed, 13 Jun 2007 06:08:25 +0200 (CEST)

> This is probably caused by the new default for the fallback hinter:
> It's no longer `latin' but `cjk'.  It seems that this needs some
> more fine tuning.  Please try to set
> 
>   #define AF_SCRIPT_LIST_DEFAULT  1
> 
> instead of value 2 in afglobal.c and report the results.

Here's something better, to be applied relative to the current CVS.
It simply defines proper Unicode ranges for all scripts which
can/could be handled by the aflatin module.  It probably needs more
fine tuning, but it restores the previous default for Latin, Cyrillic,
and Greek.

I haven't applied it yet; please test.


    Werner


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


--- aflatin.c.old       2007-06-11 23:01:20.000000000 +0200
+++ aflatin.c   2007-06-13 00:44:38.000000000 +0200
@@ -2116,11 +2116,32 @@
   /*************************************************************************/
 
 
+  /* XXX: this should probably fine tuned to differentiate better between */
+  /*      scripts...                                                      */
+
   static const AF_Script_UniRangeRec  af_latin_uniranges[] =
   {
-    { 32,  127 },    /* XXX: TODO: Add new Unicode ranges here! */
-    { 160, 255 },
-    { 0,   0 }
+    { 0x0020, 0x007F },  /* Basic Latin (no control characters) */
+    { 0x00A0, 0x00FF },  /* Latin-1 Supplement (no control characters) */
+    { 0x0100, 0x017F },  /* Latin Extended-A */
+    { 0x0180, 0x024F },  /* Latin Extended-B */
+    { 0x0250, 0x02AF },  /* IPA Extensions */
+    { 0x02B0, 0x02FF },  /* Spacing Modifier Letters */
+    { 0x0300, 0x036F },  /* Combining Diacritical Marks */
+    { 0x0370, 0x03FF },  /* Greek and Coptic */
+    { 0x0400, 0x04FF },  /* Cyrillic */
+    { 0x0500, 0x052F },  /* Cyrillic Supplement */
+    { 0x1D00, 0x1D7F },  /* Phonetic Extensions */
+    { 0x1D80, 0x1DBF },  /* Phonetic Extensions Supplement */
+    { 0x1DC0, 0x1DFF },  /* Combining Diacritical Marks Supplement */
+    { 0x1E00, 0x1EFF },  /* Latin Extended Additional */
+    { 0x1F00, 0x1FFF },  /* Greek Extended */
+    { 0x2000, 0x206F },  /* General Punctuation */
+    { 0x2070, 0x209F },  /* Superscripts and Subscripts */
+    { 0x20A0, 0x20CF },  /* Currency Symbols */
+    { 0x2150, 0x218F },  /* Number Forms */
+    { 0x2460, 0x24FF },  /* Enclosed Alphanumerics */
+    { 0     , 0      }
   };
 
 




reply via email to

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