Edit

kc3-lang/freetype/src/cff/cffgload.h

Branch :

  • Show log

    Commit

  • Author : Ewald Hew
    Date : 2017-09-24 22:28:07
    Hash : df11628b
    Message : Move struct declarations to `freetype/internal'. NOTE: Does not compile! This is so that the CFF functions moved to `psaux' can access the same structs that they need. * src/cff/cfftypes.h: Moved to... * include/freetype/internal/cfftypes.h: ...Here. * src/cff/cffobjs.h: Moved the struct declarations to... * include/freetype/internal/cffotypes.h: ... this new file. * include/freetype/internal/internal.h (FT_INTERNAL_CFF_TYPES_H, FT_INTERNAL_CFF_OBJECT_TYPES_H): New macros. * src/cff/cffcmap.h, src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffgload.h, src/cff/cffload.h, src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.h, src/psaux/psobjs.h, include/freetype/internal/psaux.h, include/freetype/internal/services/svcfftl.h: Update includes. * src/cff/rules.mk (CFF_DRV_H): Updated.

  • src/cff/cffgload.h
  • /***************************************************************************/
    /*                                                                         */
    /*  cffgload.h                                                             */
    /*                                                                         */
    /*    OpenType Glyph Loader (specification).                               */
    /*                                                                         */
    /*  Copyright 1996-2017 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 CFFGLOAD_H_
    #define CFFGLOAD_H_
    
    
    #include <ft2build.h>
    #include FT_FREETYPE_H
    #include FT_INTERNAL_CFF_OBJECTS_TYPES_H
    
    
    FT_BEGIN_HEADER
    
      FT_LOCAL( FT_Error )
      cff_get_glyph_data( TT_Face    face,
                          FT_UInt    glyph_index,
                          FT_Byte**  pointer,
                          FT_ULong*  length );
      FT_LOCAL( void )
      cff_free_glyph_data( TT_Face    face,
                           FT_Byte**  pointer,
                           FT_ULong   length );
    
    
    #if 0  /* unused until we support pure CFF fonts */
    
      /* Compute the maximum advance width of a font through quick parsing */
      FT_LOCAL( FT_Error )
      cff_compute_max_advance( TT_Face  face,
                               FT_Int*  max_advance );
    
    #endif /* 0 */
    
    
      FT_LOCAL( FT_Error )
      cff_slot_load( CFF_GlyphSlot  glyph,
                     CFF_Size       size,
                     FT_UInt        glyph_index,
                     FT_Int32       load_flags );
    
    
    FT_END_HEADER
    
    #endif /* CFFGLOAD_H_ */
    
    
    /* END */