Home | History | Annotate | Download | only in autofit
      1 /***************************************************************************/
      2 /*                                                                         */
      3 /*  afscript.h                                                             */
      4 /*                                                                         */
      5 /*    Auto-fitter scripts (specification only).                            */
      6 /*                                                                         */
      7 /*  Copyright 2013-2015 by                                                 */
      8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
      9 /*                                                                         */
     10 /*  This file is part of the FreeType project, and may only be used,       */
     11 /*  modified, and distributed under the terms of the FreeType project      */
     12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
     13 /*  this file you indicate that you have read the license and              */
     14 /*  understand and accept it fully.                                        */
     15 /*                                                                         */
     16 /***************************************************************************/
     17 
     18 
     19   /* The following part can be included multiple times. */
     20   /* Define `SCRIPT' as needed.                         */
     21 
     22 
     23   /* Add new scripts here.  The first and second arguments are the    */
     24   /* script name in lowercase and uppercase, respectively, followed   */
     25   /* by a description string.  Then comes the corresponding HarfBuzz  */
     26   /* script name tag, followed by a string of standard characters (to */
     27   /* derive the standard width and height of stems).                  */
     28 
     29   SCRIPT( arab, ARAB,
     30           "Arabic",
     31           HB_SCRIPT_ARABIC,
     32           0x644, 0x62D, 0x640 ) /*    */
     33 
     34   SCRIPT( cyrl, CYRL,
     35           "Cyrillic",
     36           HB_SCRIPT_CYRILLIC,
     37           0x43E, 0x41E, 0x0 ) /*  */
     38 
     39   SCRIPT( deva, DEVA,
     40           "Devanagari",
     41           HB_SCRIPT_DEVANAGARI,
     42           0x920, 0x935, 0x91F ) /*    */
     43 
     44   SCRIPT( grek, GREK,
     45           "Greek",
     46           HB_SCRIPT_GREEK,
     47           0x3BF, 0x39F, 0x0 ) /*  */
     48 
     49   SCRIPT( hebr, HEBR,
     50           "Hebrew",
     51           HB_SCRIPT_HEBREW,
     52           0x5DD, 0x0, 0x0 ) /*  */
     53 
     54   SCRIPT( latn, LATN,
     55           "Latin",
     56           HB_SCRIPT_LATIN,
     57           'o', 'O', '0' )
     58 
     59   SCRIPT( none, NONE,
     60           "no script",
     61           HB_SCRIPT_INVALID,
     62           0x0, 0x0, 0x0 )
     63 
     64   /* there are no simple forms for letters; we thus use two digit shapes */
     65   SCRIPT( telu, TELU,
     66           "Telugu",
     67           HB_SCRIPT_TELUGU,
     68           0xC66, 0xC67, 0x0 ) /*   */
     69 
     70   SCRIPT( thai, THAI,
     71           "Thai",
     72           HB_SCRIPT_THAI,
     73           0xE32, 0xE45, 0xE50 ) /*    */
     74 
     75 #ifdef AF_CONFIG_OPTION_INDIC
     76 
     77   SCRIPT( beng, BENG,
     78           "Bengali",
     79           HB_SCRIPT_BENGALI,
     80           'o', 0x0, 0x0 ) /* XXX */
     81 
     82   SCRIPT( gujr, GUJR,
     83           "Gujarati",
     84           HB_SCRIPT_GUJARATI,
     85           'o', 0x0, 0x0 ) /* XXX */
     86 
     87   SCRIPT( guru, GURU,
     88           "Gurmukhi",
     89           HB_SCRIPT_GURMUKHI,
     90           'o', 0x0, 0x0 ) /* XXX */
     91 
     92   SCRIPT( knda, KNDA,
     93           "Kannada",
     94           HB_SCRIPT_KANNADA,
     95           'o', 0x0, 0x0 ) /* XXX */
     96 
     97   SCRIPT( limb, LIMB,
     98           "Limbu",
     99           HB_SCRIPT_LIMBU,
    100           'o', 0x0, 0x0 ) /* XXX */
    101 
    102   SCRIPT( mlym, MLYM,
    103           "Malayalam",
    104           HB_SCRIPT_MALAYALAM,
    105           'o', 0x0, 0x0 ) /* XXX */
    106 
    107   SCRIPT( orya, ORYA,
    108           "Oriya",
    109           HB_SCRIPT_ORIYA,
    110           'o', 0x0, 0x0 ) /* XXX */
    111 
    112   SCRIPT( sinh, SINH,
    113           "Sinhala",
    114           HB_SCRIPT_SINHALA,
    115           'o', 0x0, 0x0 ) /* XXX */
    116 
    117   SCRIPT( sund, SUND,
    118           "Sundanese",
    119           HB_SCRIPT_SUNDANESE,
    120           'o', 0x0, 0x0 ) /* XXX */
    121 
    122   SCRIPT( sylo, SYLO,
    123           "Syloti Nagri",
    124           HB_SCRIPT_SYLOTI_NAGRI,
    125           'o', 0x0, 0x0 ) /* XXX */
    126 
    127   SCRIPT( taml, TAML,
    128           "Tamil",
    129           HB_SCRIPT_TAMIL,
    130           'o', 0x0, 0x0 ) /* XXX */
    131 
    132   SCRIPT( tibt, TIBT,
    133           "Tibetan",
    134           HB_SCRIPT_TIBETAN,
    135           'o', 0x0, 0x0 ) /* XXX */
    136 
    137 #endif /* AF_CONFIG_OPTION_INDIC */
    138 
    139 #ifdef AF_CONFIG_OPTION_CJK
    140 
    141   SCRIPT( hani, HANI,
    142           "CJKV ideographs",
    143           HB_SCRIPT_HAN,
    144           0x7530, 0x56D7, 0x0 ) /*  */
    145 
    146 #endif /* AF_CONFIG_OPTION_CJK */
    147 
    148 
    149 /* END */
    150