Edit

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

Branch :

  • Browse

    Commit

  • Author : Werner Lemberg
    Date : 2005-03-03 17:09:08
    Hash : f13516c8
    Message : Various fixes for C and C++ compiling. * src/autofit/*: Add copyright messages. Formatting. * src/autofit/afhints.c (af_glyph_hints_done): Don't use `AF_Dimension' but `int' for loop counter. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Don't use `AF_Dimension' but `int' for loop counter. Use proper enumeration value for `render_mode'. (af_latin_metrics_scale_dim): Don't shadow variables. (af_latin_hints_compute_segments): Use proper cast for `major_dir' and `segment_dir'. (af_latin_align_linked_edge, af_latin_hint_edges): Fix arguments of call to `af_latin_compute_stem_width'. (af_latin_hints_apply): Don't use `AF_Dimension' but `int' for loop counter. * src/base/ftdbgmem.c (ft_mem_table_get_source, FT_DumpMemory): Use proper cast for memory allocation. * src/cff/cffdrivr.c (cff_get_kerning): Use proper cast for initialization of `sfnt'. * src/sfnt/sfdriver.c: Include `ttkern.h'. * src/sfnt/ttkern.c (tt_face_get_kerning): Don't shadow variables. * src/truetype/ttgload.c: Include `ttpload.h'. * src/truetype/ttpload.c (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]: Remove redundant variable.

  • src/autofit/afdummy.h
  • /***************************************************************************/
    /*                                                                         */
    /*  afdummy.h                                                              */
    /*                                                                         */
    /*    Auto-fitter dummy routines to be used if no hinting should be        */
    /*    performed (specification).                                           */
    /*                                                                         */
    /*  Copyright 2003, 2004, 2005 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.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    
    #ifndef __AFDUMMY_H__
    #define __AFDUMMY_H__
    
    #include "aftypes.h"
    
    
    FT_BEGIN_HEADER
    
     /*  A dummy script metrics class used when no hinting should
      *  be performed.  This is the default for non-latin glyphs!
      */
    
      FT_CALLBACK_TABLE const AF_ScriptClassRec
      af_dummy_script_class;
    
    /* */
    
    FT_END_HEADER
    
    
    #endif /* __AFDUMMY_H__ */
    
    
    /* END */