1 /***************************************************************************/
   2 /*                                                                         */
   3 /*  cffgload.h                                                             */
   4 /*                                                                         */
   5 /*    OpenType Glyph Loader (specification).                               */
   6 /*                                                                         */
   7 /*  Copyright 1996-2018 by                                                 */
   8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
   9 /*                                                                         */
  10 /*  This file is part of the FreeType project, and may only be used,       */
  11 /*  modified, and distributed under the terms of the FreeType project      */
  12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
  13 /*  this file you indicate that you have read the license and              */
  14 /*  understand and accept it fully.                                        */
  15 /*                                                                         */
  16 /***************************************************************************/
  17 
  18 
  19 #ifndef CFFGLOAD_H_
  20 #define CFFGLOAD_H_
  21 
  22 
  23 #include <ft2build.h>
  24 #include FT_FREETYPE_H
  25 #include FT_INTERNAL_CFF_OBJECTS_TYPES_H
  26 
  27 
  28 FT_BEGIN_HEADER
  29 
  30   FT_LOCAL( FT_Error )
  31   cff_get_glyph_data( TT_Face    face,
  32                       FT_UInt    glyph_index,
  33                       FT_Byte**  pointer,
  34                       FT_ULong*  length );
  35   FT_LOCAL( void )
  36   cff_free_glyph_data( TT_Face    face,
  37                        FT_Byte**  pointer,
  38                        FT_ULong   length );
  39 
  40 
  41 #if 0  /* unused until we support pure CFF fonts */
  42 
  43   /* Compute the maximum advance width of a font through quick parsing */
  44   FT_LOCAL( FT_Error )
  45   cff_compute_max_advance( TT_Face  face,
  46                            FT_Int*  max_advance );
  47 
  48 #endif /* 0 */
  49 
  50 
  51   FT_LOCAL( FT_Error )
  52   cff_slot_load( CFF_GlyphSlot  glyph,
  53                  CFF_Size       size,
  54                  FT_UInt        glyph_index,
  55                  FT_Int32       load_flags );
  56 
  57 
  58 FT_END_HEADER
  59 
  60 #endif /* CFFGLOAD_H_ */
  61 
  62 
  63 /* END */