Home | History | Annotate | Download | only in autofit
      1 /***************************************************************************/
      2 /*                                                                         */
      3 /*  afscript.h                                                             */
      4 /*                                                                         */
      5 /*    Auto-fitter scripts (specification only).                            */
      6 /*                                                                         */
      7 /*  Copyright 2013, 2014 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( cyrl, CYRL,
     30           "Cyrillic",
     31           HB_SCRIPT_CYRILLIC,
     32           0x43E, 0x41E, 0x0 ) /*  */
     33 
     34   SCRIPT( deva, DEVA,
     35           "Devanagari",
     36           HB_SCRIPT_DEVANAGARI,
     37           0x920, 0x935, 0x91F ) /*    */
     38 
     39   SCRIPT( grek, GREK,
     40           "Greek",
     41           HB_SCRIPT_GREEK,
     42           0x3BF, 0x39F, 0x0 ) /*  */
     43 
     44   SCRIPT( hebr, HEBR,
     45           "Hebrew",
     46           HB_SCRIPT_HEBREW,
     47           0x5DD, 0x0, 0x0 ) /*  */
     48 
     49   SCRIPT( latn, LATN,
     50           "Latin",
     51           HB_SCRIPT_LATIN,
     52           'o', 'O', '0' )
     53 
     54   SCRIPT( none, NONE,
     55           "no script",
     56           HB_SCRIPT_INVALID,
     57           0x0, 0x0, 0x0 )
     58 
     59 #ifdef AF_CONFIG_OPTION_INDIC
     60 
     61   SCRIPT( beng, BENG,
     62           "Bengali",
     63           HB_SCRIPT_BENGALI,
     64           'o', 0x0, 0x0 ) /* XXX */
     65 
     66   SCRIPT( gujr, GUJR,
     67           "Gujarati",
     68           HB_SCRIPT_GUJARATI,
     69           'o', 0x0, 0x0 ) /* XXX */
     70 
     71   SCRIPT( guru, GURU,
     72           "Gurmukhi",
     73           HB_SCRIPT_GURMUKHI,
     74           'o', 0x0, 0x0 ) /* XXX */
     75 
     76   SCRIPT( knda, KNDA,
     77           "Kannada",
     78           HB_SCRIPT_KANNADA,
     79           'o', 0x0, 0x0 ) /* XXX */
     80 
     81   SCRIPT( limb, LIMB,
     82           "Limbu",
     83           HB_SCRIPT_LIMBU,
     84           'o', 0x0, 0x0 ) /* XXX */
     85 
     86   SCRIPT( mlym, MLYM,
     87           "Malayalam",
     88           HB_SCRIPT_MALAYALAM,
     89           'o', 0x0, 0x0 ) /* XXX */
     90 
     91   SCRIPT( orya, ORYA,
     92           "Oriya",
     93           HB_SCRIPT_ORIYA,
     94           'o', 0x0, 0x0 ) /* XXX */
     95 
     96   SCRIPT( sinh, SINH,
     97           "Sinhala",
     98           HB_SCRIPT_SINHALA,
     99           'o', 0x0, 0x0 ) /* XXX */
    100 
    101   SCRIPT( sund, SUND,
    102           "Sundanese",
    103           HB_SCRIPT_SUNDANESE,
    104           'o', 0x0, 0x0 ) /* XXX */
    105 
    106   SCRIPT( sylo, SYLO,
    107           "Syloti Nagri",
    108           HB_SCRIPT_SYLOTI_NAGRI,
    109           'o', 0x0, 0x0 ) /* XXX */
    110 
    111   SCRIPT( taml, TAML,
    112           "Tamil",
    113           HB_SCRIPT_TAMIL,
    114           'o', 0x0, 0x0 ) /* XXX */
    115 
    116   SCRIPT( telu, TELU,
    117           "Telugu",
    118           HB_SCRIPT_TELUGU,
    119           'o', 0x0, 0x0 ) /* XXX */
    120 
    121   SCRIPT( tibt, TIBT,
    122           "Tibetan",
    123           HB_SCRIPT_TIBETAN,
    124           'o', 0x0, 0x0 ) /* XXX */
    125 
    126 #endif /* AF_CONFIG_OPTION_INDIC */
    127 
    128 #ifdef AF_CONFIG_OPTION_CJK
    129 
    130   SCRIPT( hani, HANI,
    131           "CJKV ideographs",
    132           HB_SCRIPT_HAN,
    133           0x7530, 0x56D7, 0x0 ) /*  */
    134 
    135 #endif /* AF_CONFIG_OPTION_CJK */
    136 
    137 
    138 /* END */
    139