shithub: freetype+ttf2subf

ref: deb4e9839608a996ff7bb54fcddba93ff1ec0544
dir: /src/type1z/z1load.h/

View raw version
/*******************************************************************
 *
 *  t1load.h                                                    2.0
 *
 *    Type1 Loader.
 *
 *  Copyright 1996-2000 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 T1LOAD_H
#define T1LOAD_H

#include <freetype/internal/ftstream.h>
#include <freetype/internal/t1types.h>
#include <freetype/ftmm.h>
#include <z1parse.h>

#ifdef __cplusplus
  extern "C" {
#endif

  typedef struct Z1_Loader_
  {
    Z1_Parser        parser;          /* parser used to read the stream */

    FT_Int           num_chars;       /* number of characters in encoding */
    Z1_Table         encoding_table;  /* Z1_Table used to store the       */
                                /* encoding character names         */

    FT_Int           num_glyphs;
    Z1_Table         glyph_names;
    Z1_Table         charstrings;

    FT_Int           num_subrs;
    Z1_Table         subrs;
    FT_Bool          fontdata;

  } Z1_Loader;

  LOCAL_DEF
  FT_Error  Z1_Open_Face( T1_Face  face );

#ifndef Z1_CONFIG_OPTION_NO_MM_SUPPORT
  LOCAL_DEF
  FT_Error  Z1_Get_Multi_Master( T1_Face           face,
                                 FT_Multi_Master*  master );

  LOCAL_DEF
  FT_Error  Z1_Set_MM_Blend( T1_Face    face,
                             FT_UInt    num_coords,
                             FT_Fixed*  coords );

  LOCAL_DEF
  FT_Error  Z1_Set_MM_Design( T1_Face   face,
                              FT_UInt   num_coords,
                              FT_Long*  coords );

  LOCAL_DEF
  void  Z1_Done_Blend( T1_Face  face );
#endif

#ifdef __cplusplus
  }
#endif

#endif /* T1LOAD_H */


/* END */