Edit

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

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.c
  • /***************************************************************************/
    /*                                                                         */
    /*  afdummy.c                                                              */
    /*                                                                         */
    /*    Auto-fitter dummy routines to be used if no hinting should be        */
    /*    performed (body).                                                    */
    /*                                                                         */
    /*  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.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    
    #include "afdummy.h"
    #include "afhints.h"
    
    
      static FT_Error
      af_dummy_hints_init( AF_GlyphHints     hints,
                           AF_ScriptMetrics  metrics )
      {
        af_glyph_hints_rescale( hints,
                                metrics );
        return 0;
      }
    
    
      static FT_Error
      af_dummy_hints_apply( AF_GlyphHints  hints,
                            FT_Outline*    outline )
      {
        FT_UNUSED( hints );
        FT_UNUSED( outline );
    
        return 0;
      }
    
    
      FT_CALLBACK_TABLE_DEF const AF_ScriptClassRec
      af_dummy_script_class =
      {
        AF_SCRIPT_NONE,
        NULL,
    
        sizeof( AF_ScriptMetricsRec ),
    
        (AF_Script_InitMetricsFunc) NULL,
        (AF_Script_ScaleMetricsFunc)NULL,
        (AF_Script_DoneMetricsFunc) NULL,
    
        (AF_Script_InitHintsFunc)   af_dummy_hints_init,
        (AF_Script_ApplyHintsFunc)  af_dummy_hints_apply
      };
    
    
    /* END */