Edit

kc3-lang/freetype/src/cid/cidgload.h

Branch :

  • Show log

    Commit

  • Author : Werner Lemberg
    Date : 2004-05-06 11:48:35
    Hash : 3bcad439
    Message : * src/truetype/ttobjs.c (tt_driver_done): Fix typo. * src/bdf/bdfdrivr.c (BDF_Face_Done, BDF_Face_Init, BDF_Set_Pixel_Size): Don't use BDF_XXX but FT_XXX arguments which are typecast to the proper BDF_XXX types within the function. Update code accordingly. Use FT_CALLBACK_DEF throughout. (BDF_Set_Point_Size): New wrapper function. (bdf_driver_class): Remove casts. * src/cff/cffdrivr.c (Get_Kerning, Load_Glyph, cff_get_interface): Don't use CFF_XXX but FT_XXX arguments which are typecast to the proper CFF_XXX types within the function. Update code accordingly. Use FT_CALLBACK_DEF throughout. (cff_driver_class): Remove casts. * src/cff/cffobjs.h, src/cff/cffobjs.c (cff_size_done, cff_size_init, cff_size_reset, cff_slot_done, cff_slot_init, cff_face_init, cff_face_done, cff_driver_init, cff_driver_done): Don't use CFF_XXX but FT_XXX arguments which are typecast to the proper CFF_XXX types within the function. Update code accordingly. (cff_point_size_reset): New wrapper function. * src/cid/cidobjs.h, src/cid/cidobjs.c (cid_slot_done, cid_slot_init, cid_size_done, cid_size_init, cid_size_reset, cid_face_done, cid_face_init, cid_driver_init, cid_driver_done): Don't use CID_XXX but FT_XXX arguments which are typecast to the proper CID_XXX types within the function. Update code accordingly. (cid_point_size_reset): New wrapper function. * src/cid/cidgload.c, src/cid/cidgload.h (cid_slot_load_glyph): Don't use CID_XXX but FT_XXX arguments which are typecast to the proper CID_XXX types within the function. Update code accordingly. * src/cid/cidriver.c (cid_get_interface): Don't use CID_XXX but FT_XXX arguments which are typecast to the proper CID_XXX types within the function. Update code accordingly. Use FT_CALLBACK_DEF. (t1cid_driver_class): Remove casts. * src/truetype/ttdriver.c (tt_get_interface): Use FT_CALLBACK_DEF. * src/truetype/ttgxvar.c (ft_var_load_avar): Don't free non-local variables (this is done later). (ft_var_load_avar): Fix call to FT_FRAME_ENTER. (TT_Get_MM_Var): Fix size for `fvar_fields'. (TT_Vary_Get_Glyph_Deltas): Handle deallocation of local variables correctly. * src/base/ftdbgmem.c (ft_mem_debug_realloc): Don't abort if current size is zero.

  • src/cid/cidgload.h
  • /***************************************************************************/
    /*                                                                         */
    /*  cidgload.h                                                             */
    /*                                                                         */
    /*    OpenType Glyph Loader (specification).                               */
    /*                                                                         */
    /*  Copyright 1996-2001, 2002, 2004 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 __CIDGLOAD_H__
    #define __CIDGLOAD_H__
    
    
    #include <ft2build.h>
    #include "cidobjs.h"
    
    
    FT_BEGIN_HEADER
    
    
    #if 0
    
      /* Compute the maximum advance width of a font through quick parsing */
      FT_LOCAL( FT_Error )
      cid_face_compute_max_advance( CID_Face  face,
                                    FT_Int*   max_advance );
    
    #endif /* 0 */
    
      FT_LOCAL( FT_Error )
      cid_slot_load_glyph( FT_GlyphSlot  glyph,         /* CID_Glyph_Slot */
                           FT_Size       size,          /* CID_Size       */
                           FT_UInt       glyph_index,
                           FT_Int32      load_flags );
    
    
    FT_END_HEADER
    
    #endif /* __CIDGLOAD_H__ */
    
    
    /* END */