Edit

kc3-lang/freetype/src/autofit/afscript.h

Branch :

  • Browse

    Commit

  • Author : Werner Lemberg
    Date : 2013-08-02 20:25:21
    Hash : 456cc440
    Message : [autofit] Move declaration of scripts into separate file. This has the benefit that we don't need to duplicate the data at different places. * src/autofit/afscript.h: New file. * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define the enumeration values. * src/autofit/afglobal.c: Include `afscript.h' to get the script specific header files. (af_script_classes): Include `afscript.h' to fill this array. * src/autofit/afpic.c: Include `afscript.h' to get the script specific header files. (autofit_module_class_pic_init): Include `afscript.h' for initialization. * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT, AF_SCRIPT_CLASSES_REC_COUNT): Removed. Use `AF_SCRIPT_MAX' instead. * src/autofit/rules.mk (AUTOF_DRV_H): Updated.

  • src/autofit/afscript.h
  • /***************************************************************************/
    /*                                                                         */
    /*  afscript.h                                                             */
    /*                                                                         */
    /*    Auto-fitter scripts (specification only).                            */
    /*                                                                         */
    /*  Copyright 2013 by                                                      */
    /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
    /*                                                                         */
    /*  This file is part of the FreeType project, and may only be used,       */
    /*  modified, and distributed under the terms of the FreeType project      */
    /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    /*  this file you indicate that you have read the license and              */
    /*  understand and accept it fully.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    
      /* The following part can be included multiple times. */
      /* Define `SCRIPT' as needed.                         */
    
    
      /* Add new scripts here. */
    
      SCRIPT( dflt, DFLT )
      SCRIPT( latn, LATN )
      SCRIPT( hani, HANI )
      SCRIPT( deva, DEVA )
    #ifdef FT_OPTION_AUTOFIT2
      SCRIPT( ltn2, LTN2 )
    #endif
    
    
    /* END */